The patch titled Subject: mips: add entry for new mlock2 syscall has been added to the -mm tree. Its filename is mips-add-entry-for-new-mlock2-syscall.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mips-add-entry-for-new-mlock2-syscall.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mips-add-entry-for-new-mlock2-syscall.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Eric B Munson <emunson@xxxxxxxxxx> Subject: mips: add entry for new mlock2 syscall A previous commit introduced the new mlock2 syscall, add entries for the MIPS architecture. Signed-off-by: Eric B Munson <emunson@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Guenter Roeck <linux@xxxxxxxxxxxx> Cc: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Michael Kerrisk <mtk.manpages@xxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxx> Cc: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/mips/include/uapi/asm/unistd.h | 15 +++++++++------ arch/mips/kernel/scall32-o32.S | 1 + arch/mips/kernel/scall64-64.S | 1 + arch/mips/kernel/scall64-n32.S | 1 + arch/mips/kernel/scall64-o32.S | 1 + 5 files changed, 13 insertions(+), 6 deletions(-) diff -puN arch/mips/include/uapi/asm/unistd.h~mips-add-entry-for-new-mlock2-syscall arch/mips/include/uapi/asm/unistd.h --- a/arch/mips/include/uapi/asm/unistd.h~mips-add-entry-for-new-mlock2-syscall +++ a/arch/mips/include/uapi/asm/unistd.h @@ -377,16 +377,17 @@ #define __NR_memfd_create (__NR_Linux + 354) #define __NR_bpf (__NR_Linux + 355) #define __NR_execveat (__NR_Linux + 356) +#define __NR_mlock2 (__NR_Linux + 357) /* * Offset of the last Linux o32 flavoured syscall */ -#define __NR_Linux_syscalls 356 +#define __NR_Linux_syscalls 357 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ #define __NR_O32_Linux 4000 -#define __NR_O32_Linux_syscalls 356 +#define __NR_O32_Linux_syscalls 357 #if _MIPS_SIM == _MIPS_SIM_ABI64 @@ -711,16 +712,17 @@ #define __NR_memfd_create (__NR_Linux + 314) #define __NR_bpf (__NR_Linux + 315) #define __NR_execveat (__NR_Linux + 316) +#define __NR_mlock2 (__NR_Linux + 317) /* * Offset of the last Linux 64-bit flavoured syscall */ -#define __NR_Linux_syscalls 316 +#define __NR_Linux_syscalls 317 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ #define __NR_64_Linux 5000 -#define __NR_64_Linux_syscalls 316 +#define __NR_64_Linux_syscalls 317 #if _MIPS_SIM == _MIPS_SIM_NABI32 @@ -1049,15 +1051,16 @@ #define __NR_memfd_create (__NR_Linux + 318) #define __NR_bpf (__NR_Linux + 319) #define __NR_execveat (__NR_Linux + 320) +#define __NR_mlock2 (__NR_Linux + 321) /* * Offset of the last N32 flavoured syscall */ -#define __NR_Linux_syscalls 320 +#define __NR_Linux_syscalls 321 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ #define __NR_N32_Linux 6000 -#define __NR_N32_Linux_syscalls 320 +#define __NR_N32_Linux_syscalls 321 #endif /* _UAPI_ASM_UNISTD_H */ diff -puN arch/mips/kernel/scall32-o32.S~mips-add-entry-for-new-mlock2-syscall arch/mips/kernel/scall32-o32.S --- a/arch/mips/kernel/scall32-o32.S~mips-add-entry-for-new-mlock2-syscall +++ a/arch/mips/kernel/scall32-o32.S @@ -599,3 +599,4 @@ EXPORT(sys_call_table) PTR sys_memfd_create PTR sys_bpf /* 4355 */ PTR sys_execveat + PTR sys_mlock2 diff -puN arch/mips/kernel/scall64-64.S~mips-add-entry-for-new-mlock2-syscall arch/mips/kernel/scall64-64.S --- a/arch/mips/kernel/scall64-64.S~mips-add-entry-for-new-mlock2-syscall +++ a/arch/mips/kernel/scall64-64.S @@ -436,4 +436,5 @@ EXPORT(sys_call_table) PTR sys_memfd_create PTR sys_bpf /* 5315 */ PTR sys_execveat + PTR sys_mlock2 .size sys_call_table,.-sys_call_table diff -puN arch/mips/kernel/scall64-n32.S~mips-add-entry-for-new-mlock2-syscall arch/mips/kernel/scall64-n32.S --- a/arch/mips/kernel/scall64-n32.S~mips-add-entry-for-new-mlock2-syscall +++ a/arch/mips/kernel/scall64-n32.S @@ -429,4 +429,5 @@ EXPORT(sysn32_call_table) PTR sys_memfd_create PTR sys_bpf PTR compat_sys_execveat /* 6320 */ + PTR sys_mlock2 .size sysn32_call_table,.-sysn32_call_table diff -puN arch/mips/kernel/scall64-o32.S~mips-add-entry-for-new-mlock2-syscall arch/mips/kernel/scall64-o32.S --- a/arch/mips/kernel/scall64-o32.S~mips-add-entry-for-new-mlock2-syscall +++ a/arch/mips/kernel/scall64-o32.S @@ -584,4 +584,5 @@ EXPORT(sys32_call_table) PTR sys_memfd_create PTR sys_bpf /* 4355 */ PTR compat_sys_execveat + PTR sys_mlock2 .size sys32_call_table,.-sys32_call_table _ Patches currently in -mm which might be from emunson@xxxxxxxxxx are mm-mlock-refactor-mlock-munlock-and-munlockall-code.patch mm-mlock-add-new-mlock-system-call.patch mm-introduce-vm_lockonfault.patch mm-mlock-add-mlock-flags-to-enable-vm_lockonfault-usage.patch selftests-vm-add-tests-for-lock-on-fault.patch mips-add-entry-for-new-mlock2-syscall.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html