mips: add entry for new mlock2 syscall
authorEric B Munson <emunson@akamai.com>
Mon, 9 Nov 2015 22:58:03 +0000 (14:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2015 23:11:24 +0000 (15:11 -0800)
A previous commit introduced the new mlock2 syscall, add entries for the
MIPS architecture.

Signed-off-by: Eric B Munson <emunson@akamai.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mips/include/uapi/asm/unistd.h
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S

index cfabadb135d9fe94912080ea41ca761e6f1eca08..90f03a7da6654da7000108042dcf00944d322406 100644 (file)
 #define __NR_execveat                  (__NR_Linux + 356)
 #define __NR_userfaultfd               (__NR_Linux + 357)
 #define __NR_membarrier                        (__NR_Linux + 358)
+#define __NR_mlock2                    (__NR_Linux + 359)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls            358
+#define __NR_Linux_syscalls            359
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
-#define __NR_O32_Linux_syscalls                358
+#define __NR_O32_Linux_syscalls                359
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 #define __NR_execveat                  (__NR_Linux + 316)
 #define __NR_userfaultfd               (__NR_Linux + 317)
 #define __NR_membarrier                        (__NR_Linux + 318)
+#define __NR_mlock2                    (__NR_Linux + 319)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls            318
+#define __NR_Linux_syscalls            319
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
-#define __NR_64_Linux_syscalls         318
+#define __NR_64_Linux_syscalls         319
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
 #define __NR_execveat                  (__NR_Linux + 320)
 #define __NR_userfaultfd               (__NR_Linux + 321)
 #define __NR_membarrier                        (__NR_Linux + 322)
+#define __NR_mlock2                    (__NR_Linux + 323)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls            322
+#define __NR_Linux_syscalls            323
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
-#define __NR_N32_Linux_syscalls                322
+#define __NR_N32_Linux_syscalls                323
 
 #endif /* _UAPI_ASM_UNISTD_H */
index 65a74e4f0f456d1de9d29ed83a62e1bcc6e644fc..2d23c834ba96cd328a87d016e328176fc9a6876e 100644 (file)
@@ -594,3 +594,4 @@ EXPORT(sys_call_table)
        PTR     sys_execveat
        PTR     sys_userfaultfd
        PTR     sys_membarrier
+       PTR     sys_mlock2
index e732981cf99fde26181f1db3bcb65ebd86ea4a0d..deac63315d0ed4123d1e0f09b617e9250d68c885 100644 (file)
@@ -432,4 +432,5 @@ EXPORT(sys_call_table)
        PTR     sys_execveat
        PTR     sys_userfaultfd
        PTR     sys_membarrier
+       PTR     sys_mlock2
        .size   sys_call_table,.-sys_call_table
index c794843975845df2e0a9d9c0c0fd14dad1ed17ec..5a69eb48d0a8cef87c33c3184f4ddc3236f01d2d 100644 (file)
@@ -422,4 +422,5 @@ EXPORT(sysn32_call_table)
        PTR     compat_sys_execveat             /* 6320 */
        PTR     sys_userfaultfd
        PTR     sys_membarrier
+       PTR     sys_mlock2
        .size   sysn32_call_table,.-sysn32_call_table
index 6369cfd390c6330269b05eb095020dafa6cdc048..e4b6d7c9782263e7c6dfca1b7eb4e6818ca78a6e 100644 (file)
@@ -577,4 +577,5 @@ EXPORT(sys32_call_table)
        PTR     compat_sys_execveat
        PTR     sys_userfaultfd
        PTR     sys_membarrier
+       PTR     sys_mlock2
        .size   sys32_call_table,.-sys32_call_table