powerpc: Provide do_ppc64_personality helper
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:54 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:08 +0000 (19:22 +1000)
commitac17defbeb4e8285c5b9752164b1d68b13bf3e3b
tree5bcf6cafed3f93b074b05d5262738dd388f32603
parentb7fa9ce86d32baf2a3a8bf8fdaa44870084edd85
powerpc: Provide do_ppc64_personality helper

Avoid duplication in future patch that will define the ppc64_personality
syscall handler in terms of the SYSCALL_DEFINE and COMPAT_SYSCALL_DEFINE
macros, by extracting the common body of ppc64_personality into a helper
function.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-15-rmclure@linux.ibm.com
arch/powerpc/kernel/syscalls.c