OSDN Git Service

powerpc: Include all arch-specific syscall prototypes
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:56 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:08 +0000 (19:22 +1000)
commit8cd1def4b8e4a592949509fac443e850da8428d0
tree1f0d0651794768733bed071e68db0ca7712db9dc
parentdec20c50df79cadaff17e964ef7f622491a52134
powerpc: Include all arch-specific syscall prototypes

Forward declare all syscall handler prototypes where a generic prototype
is not provided in either linux/syscalls.h or linux/compat.h in
asm/syscalls.h. This is required for compile-time type-checking for
syscall handlers, which is implemented later in this series.

32-bit compatibility syscall handlers are expressed in terms of types in
ppc32.h. Expose this header globally.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use standard include guard naming for syscalls_32.h]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-17-rmclure@linux.ibm.com
arch/powerpc/include/asm/syscalls.h
arch/powerpc/include/asm/syscalls_32.h [moved from arch/powerpc/kernel/ppc32.h with 93% similarity]
arch/powerpc/kernel/signal_32.c
arch/powerpc/perf/callchain_32.c