From: Benjamin Thiel Date: Thu, 23 Jan 2020 15:27:54 +0000 (+0100) Subject: x86/syscalls: Add prototypes for C syscall callbacks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=99ce3255fddf08fca9249488793c9b5c909ff0ab;p=linux.git x86/syscalls: Add prototypes for C syscall callbacks .. in order to fix a couple of -Wmissing-prototypes warnings. No functional change. [ bp: Massage commit message and drop newlines. ] Signed-off-by: Benjamin Thiel Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20200123152754.20149-1-b.thiel@posteo.de --- diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index 9747876980b5d..ec167d8c41cbd 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -34,6 +34,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS #include diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 8db3fdb6102ec..d20ffc518cf45 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -168,6 +168,11 @@ static inline int syscall_get_arch(struct task_struct *task) task->thread_info.status & TS_COMPAT) ? AUDIT_ARCH_I386 : AUDIT_ARCH_X86_64; } + +void do_syscall_64(unsigned long nr, struct pt_regs *regs); +void do_int80_syscall_32(struct pt_regs *regs); +long do_fast_syscall_32(struct pt_regs *regs); + #endif /* CONFIG_X86_32 */ #endif /* _ASM_X86_SYSCALL_H */