[PATCH 54/58] linux/syscalls.h: Include asm/syscalls.h for additional prototypes

From: Josh Triplett
Date: Mon Nov 19 2012 - 00:33:05 EST


include/linux/syscalls.h has prototypes for most syscalls, but other
prototypes appear in the corresponding asm/syscalls.h instead. Include
the latter in the former, giving include/linux/syscalls.h a more
complete set of syscall prototypes. This eliminates warnings from GCC
(-Wmissing-prototypes) and Sparse (-Wdecl).

fs/exec.c:1667:2: warning: no previous prototype for âsys_execveâ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
include/linux/syscalls.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 4ec00c1..2052f03 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -76,6 +76,7 @@ struct file_handle;
#include <linux/quota.h>
#include <linux/key.h>
#include <trace/syscall.h>
+#include <asm/syscalls.h>

#define __SC_DECL1(t1, a1) t1 a1
#define __SC_DECL2(t2, a2, ...) t2 a2, __SC_DECL1(__VA_ARGS__)
--
1.7.10.4

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