[PATCH] powerpc: wire up sys_mlock2

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3922d

3 messages, 3 authors, 2015-11-20 · open the first message on its own page

[PATCH] powerpc: wire up sys_mlock2

From: Denis Kirjanov <hidden>
Date: 2015-11-19 20:24:49

Tested with tools/testing/selftests/vm/mlock2-tests
both on ppc64 and ppc32

Signed-off-by: Denis Kirjanov <redacted>
---
 arch/powerpc/include/asm/systbl.h      | 1 +
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index c9e26cb..dcce86c 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -382,3 +382,4 @@ COMPAT_SYS(shmat)
 SYSCALL(shmdt)
 SYSCALL(shmget)
 COMPAT_SYS(shmctl)
+SYSCALL_SPU(mlock2)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 6d8f802..4b6b8ac 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -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
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 81579e9..1effea5 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -400,5 +400,6 @@
 #define __NR_shmdt		375
 #define __NR_shmget		376
 #define __NR_shmctl		377
+#define __NR_mlock2		378
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
-- 
2.4.0

Re: [PATCH] powerpc: wire up sys_mlock2

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-11-20 12:00:25

On Thu, 2015-11-19 at 23:23 +0300, Denis Kirjanov wrote:
Tested with tools/testing/selftests/vm/mlock2-tests
both on ppc64 and ppc32
Actually I did this myself and it's been in my fixes branch (which is in
linux-next) for a few days. I just asked Linus to pull it.

cheers

Re: [PATCH] powerpc: wire up sys_mlock2

From: Denis Kirjanov <kirjanov@gmail.com>
Date: 2015-11-20 12:17:54

On 11/20/15, Michael Ellerman [off-list ref] wrote:
On Thu, 2015-11-19 at 23:23 +0300, Denis Kirjanov wrote:
quoted
Tested with tools/testing/selftests/vm/mlock2-tests
both on ppc64 and ppc32
Actually I did this myself and it's been in my fixes branch (which is in
linux-next) for a few days. I just asked Linus to pull it.
Ok, great!
cheers

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

--=20
Regards / Mit besten Gr=C3=BC=C3=9Fen,
Denis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help