Skip to content

Commit

Permalink
kernel/sys_ni.c: add dummy sys_ni_syscall() prototype
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Oct 17, 2007
1 parent 827afdf commit 0732a55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/sys_ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 0732a55

Please sign in to comment.