]> git.hungrycats.org Git - linux/commitdiff
[PATCH] SPARC: Fix missed bump of NR_SYSCALLS.
authorDavid Miller <davem@davemloft.net>
Mon, 6 Nov 2006 00:58:44 +0000 (16:58 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Nov 2006 03:27:59 +0000 (19:27 -0800)
When I added the robust futex syscall entries I forgot to bump
NR_SYSCALLS.  This is an easy mistake to make because NR_SYSCALLS
lived in entry.S which is nowhere near unistd.h or syscalls.S, so
while we're here move it's definition into unistd.h so this is
unlikely to ever happen again.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/sparc/kernel/entry.S
arch/sparc64/kernel/entry.S
include/asm-sparc/unistd.h
include/asm-sparc64/unistd.h

index a4edff4c3be3a9a661a5e80d9d50ee477db8bd23..831f540251f887a55ec40b061905f0f8d07cf944 100644 (file)
 #include <asm/mxcc.h>
 #include <asm/thread_info.h>
 #include <asm/param.h>
+#include <asm/unistd.h>
 
 #include <asm/asmmacro.h>
 
 #define curptr      g6
 
-#define NR_SYSCALLS 300      /* Each OS is different... */
-
 /* These are just handy. */
 #define _SV    save    %sp, -STACKFRAME_SZ, %sp
 #define _RS     restore 
index 0aaa35fc5a9c762f343dc35b4be35f92237d0956..6f28bec0a9bf5d4ea8e86806afeb22449099a4c8 100644 (file)
 #include <asm/auxio.h>
 #include <asm/sfafsr.h>
 #include <asm/pil.h>
+#include <asm/unistd.h>
 
 #define curptr      g6
 
-#define NR_SYSCALLS 300      /* Each OS is different... */
-
        .text
        .align          32
 
index 2553762465ca78f1d31cdaf10d57f6d8279bf4c0..68380ad77bb343e1987226e7812cdd33e8dc5289 100644 (file)
 #define __NR_set_robust_list   300
 #define __NR_get_robust_list   301
 
+#define NR_SYSCALLS            302
+
 #ifdef __KERNEL__
 /* WARNING: You MAY NOT add syscall numbers larger than 301, since
  *          all of the syscall tables in the Sparc kernel are
index badc73fdcb97c261a1011db687a45a4ac88b59a5..124dcef35f3d303bdd5093931f8ef2d0f8079e58 100644 (file)
 #define __NR_set_robust_list   300
 #define __NR_get_robust_list   301
 
+#define NR_SYSCALLS            302
+
 #ifdef __KERNEL__
 /* WARNING: You MAY NOT add syscall numbers larger than 301, since
  *          all of the syscall tables in the Sparc kernel are