[PATCH 04/16] arch: x86: ia32: Add prototype for compat_ni_syscall

From: Darshana Padmadas
Date: Wed Mar 04 2015 - 08:33:12 EST


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 <darshanapadmadas@xxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/