diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-11 05:54:26 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-16 01:05:53 -0500 |
commit | 1451ad03fac3e86948728e0b11f63dee73d3106c (patch) | |
tree | 51b752095894fa41392d31dbe36f6827981b460b | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
powerpc: Wire up sys_mlock2()
The selftest passes on 64-bit LE and 32-bit BE.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/asm/systbl.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/unistd.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/uapi/asm/unistd.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index c9e26cb264f4..f2b0b1b0c72a 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h | |||
@@ -382,3 +382,4 @@ COMPAT_SYS(shmat) | |||
382 | SYSCALL(shmdt) | 382 | SYSCALL(shmdt) |
383 | SYSCALL(shmget) | 383 | SYSCALL(shmget) |
384 | COMPAT_SYS(shmctl) | 384 | COMPAT_SYS(shmctl) |
385 | SYSCALL(mlock2) | ||
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h index 6d8f8023ac27..4b6b8ace18e0 100644 --- a/arch/powerpc/include/asm/unistd.h +++ b/arch/powerpc/include/asm/unistd.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <uapi/asm/unistd.h> | 12 | #include <uapi/asm/unistd.h> |
13 | 13 | ||
14 | 14 | ||
15 | #define __NR_syscalls 378 | 15 | #define __NR_syscalls 379 |
16 | 16 | ||
17 | #define __NR__exit __NR_exit | 17 | #define __NR__exit __NR_exit |
18 | #define NR_syscalls __NR_syscalls | 18 | #define NR_syscalls __NR_syscalls |
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h index 81579e93c659..1effea5193d6 100644 --- a/arch/powerpc/include/uapi/asm/unistd.h +++ b/arch/powerpc/include/uapi/asm/unistd.h | |||
@@ -400,5 +400,6 @@ | |||
400 | #define __NR_shmdt 375 | 400 | #define __NR_shmdt 375 |
401 | #define __NR_shmget 376 | 401 | #define __NR_shmget 376 |
402 | #define __NR_shmctl 377 | 402 | #define __NR_shmctl 377 |
403 | #define __NR_mlock2 378 | ||
403 | 404 | ||
404 | #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ | 405 | #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ |