aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/syscall_wrapper.h
diff options
context:
space:
mode:
authorRohan McLure <[email protected]>2022-09-21 16:55:58 +1000
committerMichael Ellerman <[email protected]>2022-09-28 19:22:09 +1000
commit8640de0dee49cec50040d9845a2bc96fd15adc9e (patch)
treea46b6ff4196c2cd9c57396a44a13d4d691b77cf6 /arch/powerpc/include/asm/syscall_wrapper.h
parent39859aea411b1696c6bc0c04bd2b5095ddba6196 (diff)
powerpc: Use common syscall handler type
Cause syscall handlers to be typed as follows when called indirectly throughout the kernel. This is to allow for better type checking. typedef long (*syscall_fn)(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long); Since both 32 and 64-bit abis allow for at least the first six machine-word length parameters to a function to be passed by registers, even handlers which admit fewer than six parameters may be viewed as having the above type. Coercing syscalls to syscall_fn requires a cast to void* to avoid -Wcast-function-type. Fixup comparisons in VDSO to avoid pointer-integer comparison. Introduce explicit cast on systems with SPUs. Signed-off-by: Rohan McLure <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/include/asm/syscall_wrapper.h')
0 files changed, 0 insertions, 0 deletions