Skip to contentSkip to conversation

x86-2.6.28: fix NR_syscalls defines

PATCH New Jan Kiszka 1 participant 1 message Feb 19, 2009 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86-2.6.28: fix NR_syscalls defines

I bet this is also broken in older kernels, but it should be mostly harmless, may just add unneeded overhead to newer syscalls.

---
 arch/x86/include/asm/unistd_32.h |    2 +-
 arch/x86/include/asm/unistd_64.h |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/include/asm/unistd_32.h +1 -1
Index: b/arch/x86/include/asm/unistd_32.h
===================================================================
@@ -339,7 +339,7 @@
 #define __NR_pipe2		331
 #define __NR_inotify_init1	332
 
-#define NR_syscalls		327
+#define NR_syscalls		333
 
 #ifdef __KERNEL__
 
arch/x86/include/asm/unistd_64.h +1 -2
Index: b/arch/x86/include/asm/unistd_64.h
===================================================================
@@ -654,8 +654,7 @@ __SYSCALL(__NR_pipe2, sys_pipe2)
 #define __NR_inotify_init1			294
 __SYSCALL(__NR_inotify_init1, sys_inotify_init1)
 
-
-#define NR_syscalls		286
+#define NR_syscalls		295
 
 #ifndef __NO_STUBS
 #define __ARCH_WANT_OLD_READDIR