ARM: 9309/1: add missing syscall prototypes
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Jun 2023 18:29:00 +0000 (19:29 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 19 Jun 2023 08:35:55 +0000 (09:35 +0100)
commitbe0796b07ba845f40ab90bc3fead01f757a6d98a
treec513c539f14c29afcc2be5b33034e184afe64f78
parentad1cfe62b818f5995c047c54248ff98c3623e1f8
ARM: 9309/1: add missing syscall prototypes

All architecture-independent system calls have prototypes in
include/linux/syscalls.h, but there are a few that only exist
on arm or that take the pt_regs directly. These cause a W=1
warning such as:

arch/arm/kernel/signal.c:186:16: error: no previous prototype for 'sys_sigreturn' [-Werror=missing-prototypes]
arch/arm/kernel/signal.c:216:16: error: no previous prototype for 'sys_rt_sigreturn' [-Werror=missing-prototypes]
arch/arm/kernel/sys_arm.c:32:17: error: no previous prototype for 'sys_arm_fadvise64_64' [-Werror=missing-prototypes]

Add prototypes for all custom syscalls on arm and add them
to asm/syscalls.h.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/syscalls.h [new file with mode: 0644]
arch/arm/kernel/signal.c
arch/arm/kernel/sys_arm.c
arch/arm/kernel/sys_oabi-compat.c