aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/ia32/nosyscall.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-11-11 15:48:42 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2011-11-17 13:35:35 -0800
commite79a7fccfb2ab10f8753ac634a1c8473e870ae6c (patch)
tree9a9ebe1068f4d0a04e44c43ff2cf1833f0cda9d0 /arch/x86/ia32/nosyscall.c
parentx86-64, syscall: Adjust comment spacing and remove typo (diff)
downloadlinux-dev-e79a7fccfb2ab10f8753ac634a1c8473e870ae6c.tar.xz
linux-dev-e79a7fccfb2ab10f8753ac634a1c8473e870ae6c.zip
x86-64, ia32: Move compat_ni_syscall into C and its own file
Move compat_ni_syscall out of ia32entry.S and into its own .c file. Although this is a trivial function, it is not performance-critical, and this will simplify further cleanups. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/ia32/nosyscall.c')
-rw-r--r--arch/x86/ia32/nosyscall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/ia32/nosyscall.c b/arch/x86/ia32/nosyscall.c
new file mode 100644
index 000000000000..51ecd5b4e787
--- /dev/null
+++ b/arch/x86/ia32/nosyscall.c
@@ -0,0 +1,7 @@
+#include <linux/kernel.h>
+#include <linux/errno.h>
+
+long compat_ni_syscall(void)
+{
+ return -ENOSYS;
+}