]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Remove direct call to personality syscall handler
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:52 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:16 +0000 (23:00 +1000)
commit8b887f064a1f3a809ef5d0ddcae850d51f0c4788
tree5ae09dd5c1c2737a00998945a50d29cb9b0018fd
parent8048f3809a1db9d9ff38abaee535c9e47ffa8c90
powerpc: Remove direct call to personality syscall handler

Syscall handlers should not be invoked internally by their symbol names,
as these symbols defined by the architecture-defined SYSCALL_DEFINE
macro. Fortunately, in the case of ppc64_personality, its call to
sys_personality can be replaced with an invocation to the
equivalent ksys_personality inline helper in <linux/syscalls.h>.

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-13-rmclure@linux.ibm.com
arch/powerpc/kernel/syscalls.c