projects/linux·commit 0732a552

kernel/sys_ni.c: add dummy sys_ni_syscall() prototype

0732a552 · Adrian Bunk <[email protected]> · 2007-10-16 23:29:25 -07:00

kernel/sys_ni.c can't #include <linux/syscalls.h> due to cond_syscall(),
but let's tell gcc to not warn with -Wmissing-prototypes.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
0732a552cb31a40db47f7d48e54847190e452da9
Parents
827afdf0

Changes

1 files changed · +4 −0

FileStatusAddDelContent
kernel/sys_ni.cmodified+4−0View file

kernel/sys_ni.c

View file
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c
index b0ec498..52c7a15 100644
--- a/kernel/sys_ni.c
+++ b/kernel/sys_ni.c
@@ -4,6 +4,10 @@
#include <asm/unistd.h>
+/* we can't #include <linux/syscalls.h> here,
+ but tell gcc to not warn with -Wmissing-prototypes */
+asmlinkage long sys_ni_syscall(void);
+
/*
* Non-implemented system calls get redirected here.
*/