Skip to contentSkip to conversation

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

PATCH New Adrian Bunk 1 participant 1 message Aug 14, 2007 ABI/API

lore
Share & tools
lore
#0 lore raw

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

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.

---
bb96ccd3b695dfa92056e6fc5e42a89ea99f3a8c

kernel/sys_ni.c +4 -0
index b0ec498..0c90f60 100644
@@ -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.
  */