]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95714667913ad1692c3c5059c92e5f6637fb3610
tree5bcf6cafed3f93b074b05d5262738dd388f32603
parent8c47d34bbe26e4a001830fd430464cca43c3db53
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