]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/syscalls: Add prototypes for C syscall callbacks
authorBenjamin Thiel <b.thiel@posteo.de>
Thu, 23 Jan 2020 15:27:54 +0000 (16:27 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Feb 2020 17:22:25 +0000 (18:22 +0100)
.. 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 <b.thiel@posteo.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200123152754.20149-1-b.thiel@posteo.de
arch/x86/entry/common.c
arch/x86/include/asm/syscall.h

index 9747876980b5d9e3eac01dea4738b304b1cabbf9..ec167d8c41cbd164ceb7f3066af0010f9ff7a58a 100644 (file)
@@ -34,6 +34,7 @@
 #include <asm/fpu/api.h>
 #include <asm/nospec-branch.h>
 #include <asm/io_bitmap.h>
+#include <asm/syscall.h>
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/syscalls.h>
index 8db3fdb6102ecb373f085de3a6033c645fbe644c..d20ffc518cf45719b2f65a3d8159db99ae0e277b 100644 (file)
@@ -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 */