powerpc: Wire up sys_mlock2()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 Nov 2015 10:54:26 +0000 (21:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Nov 2015 06:05:53 +0000 (17:05 +1100)
The selftest passes on 64-bit LE and 32-bit BE.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index c9e26cb264f49dfff80114ddd97e1d10460157dd..f2b0b1b0c72acf49373310288fcb330d726740e7 100644 (file)
@@ -382,3 +382,4 @@ COMPAT_SYS(shmat)
 SYSCALL(shmdt)
 SYSCALL(shmget)
 COMPAT_SYS(shmctl)
+SYSCALL(mlock2)
index 6d8f8023ac27b1893bd4f6d329c6498b39fd949d..4b6b8ace18e086729932bd5635811167a6491a2b 100644 (file)
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls          378
+#define __NR_syscalls          379
 
 #define __NR__exit __NR_exit
 #define NR_syscalls    __NR_syscalls
index 81579e93c65991b3dcb1e129aec6474a722d86cc..1effea5193d6861cb0074a5c682965b4e4f6a13e 100644 (file)
 #define __NR_shmdt             375
 #define __NR_shmget            376
 #define __NR_shmctl            377
+#define __NR_mlock2            378
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */