From: Nick Alcock Date: Wed, 16 Dec 2015 21:54:12 +0000 (+0000) Subject: sparc: increase NR_syscalls properly X-Git-Tag: v4.1.12-92~204^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4c7403d89578d3770e446f57063ca9c749b6f9e8;p=users%2Fjedix%2Flinux-maple.git sparc: increase NR_syscalls properly When waitfd() was added, NR_syscalls was never incremented, so the syscall always unconditionally returned -ENOSYS on SPARC. Wire it up by incrementing NR_syscalls correctly. (The syscall has been tested, but, it turns out, only on x86 and on SPARC in the 4.0 kernel. Testing on SPARC with its single user, DTrace, suggests that all is still well here.) Orabug: 22390316 Reviewed-by: Todd Vierling Signed-off-by: Nick Alcock --- diff --git a/arch/sparc/include/uapi/asm/unistd.h b/arch/sparc/include/uapi/asm/unistd.h index 9149cc8742b03..a1f3c32b16bf4 100644 --- a/arch/sparc/include/uapi/asm/unistd.h +++ b/arch/sparc/include/uapi/asm/unistd.h @@ -418,7 +418,7 @@ #define __NR_execveat 350 #define __NR_waitfd 351 -#define NR_syscalls 351 +#define NR_syscalls 352 /* Bitmask values returned from kern_features system call. */ #define KERN_FEATURE_MIXED_MODE_STACK 0x00000001