Skip to content

Commit 99ce325

Browse files
Benjamin Thielsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent cdcb58c commit 99ce325

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/x86/entry/common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <asm/fpu/api.h>
3535
#include <asm/nospec-branch.h>
3636
#include <asm/io_bitmap.h>
37+
#include <asm/syscall.h>
3738

3839
#define CREATE_TRACE_POINTS
3940
#include <trace/events/syscalls.h>

arch/x86/include/asm/syscall.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ static inline int syscall_get_arch(struct task_struct *task)
168168
task->thread_info.status & TS_COMPAT)
169169
? AUDIT_ARCH_I386 : AUDIT_ARCH_X86_64;
170170
}
171+
172+
void do_syscall_64(unsigned long nr, struct pt_regs *regs);
173+
void do_int80_syscall_32(struct pt_regs *regs);
174+
long do_fast_syscall_32(struct pt_regs *regs);
175+
171176
#endif /* CONFIG_X86_32 */
172177

173178
#endif /* _ASM_X86_SYSCALL_H */

0 commit comments

Comments
 (0)