nosyscall.c declares function compat_ni_syscall that returns
long datatype. compat_ni_syscall is also defined in syscall_ia32.c
but returns void. Add prototype for this function.

This eliminates the following warning:

arch/x86/ia32/nosyscall.c:4:6: warning: no previous prototype for 
‘compat_ni_syscall’ [-Wmissing-prototypes]

Signed-off-by: Darshana Padmadas <[email protected]>
---
 arch/x86/ia32/nosyscall.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/ia32/nosyscall.c b/arch/x86/ia32/nosyscall.c
index 51ecd5b..22f757b 100644
--- a/arch/x86/ia32/nosyscall.c
+++ b/arch/x86/ia32/nosyscall.c
@@ -1,6 +1,8 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 
+long compat_ni_syscall(void);
+
 long compat_ni_syscall(void)
 {
        return -ENOSYS;
-- 
1.9.1

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

Reply via email to