[2.6 patch] kernel/sys_ni.c: add dummy sys_ni_syscall() prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]>

---

This patch has been sent on:
- 14 Aug 2007

--- 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.
  */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux