]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kernel/sys_ni.c: add dummy sys_ni_syscall() prototype
authorAdrian Bunk <bunk@kernel.org>
Wed, 17 Oct 2007 06:29:25 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:55 +0000 (08:42 -0700)
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 <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys_ni.c

index b0ec498a18d9d86eca840aced3f1580744ef8b71..52c7a151e298fbcd2a467697e7e448720beca175 100644 (file)
@@ -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.
  */