add mlock2 syscall number from linux v4.4
this is mlock with a flags argument, new in linux commit
a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
as usual microblaze and sh don't have allocated syscall number yet.
diff --git a/arch/aarch64/bits/syscall.h b/arch/aarch64/bits/syscall.h
index d64b437..31bed73 100644
--- a/arch/aarch64/bits/syscall.h
+++ b/arch/aarch64/bits/syscall.h
@@ -267,6 +267,7 @@
#define __NR_execveat 281
#define __NR_userfaultfd 282
#define __NR_membarrier 283
+#define __NR_mlock2 284
#define SYS_io_setup __NR_io_setup
#define SYS_io_destroy __NR_io_destroy
@@ -537,3 +538,4 @@
#define SYS_execveat __NR_execveat
#define SYS_userfaultfd __NR_userfaultfd
#define SYS_membarrier __NR_membarrier
+#define SYS_mlock2 __NR_mlock2
diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h
index 0ddb2cc..036c562 100644
--- a/arch/arm/bits/syscall.h
+++ b/arch/arm/bits/syscall.h
@@ -343,6 +343,7 @@
#define __NR_execveat 387
#define __NR_userfaultfd 388
#define __NR_membarrier 389
+#define __NR_mlock2 390
#define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002
@@ -697,3 +698,4 @@
#define SYS_execveat 387
#define SYS_userfaultfd 388
#define SYS_membarrier 389
+#define SYS_mlock2 390
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h
index 27c5325..b1a389b 100644
--- a/arch/i386/bits/syscall.h
+++ b/arch/i386/bits/syscall.h
@@ -374,6 +374,7 @@
#define __NR_shutdown 373
#define __NR_userfaultfd 374
#define __NR_membarrier 375
+#define __NR_mlock2 376
/* Repeated with SYS_ prefix */
@@ -754,3 +755,4 @@
#define SYS_shutdown 373
#define SYS_userfaultfd 374
#define SYS_membarrier 375
+#define SYS_mlock2 376
diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h
index 08bac39..340c587 100644
--- a/arch/mips/bits/syscall.h
+++ b/arch/mips/bits/syscall.h
@@ -356,6 +356,7 @@
#define __NR_execveat 4356
#define __NR_userfaultfd 4357
#define __NR_membarrier 4358
+#define __NR_mlock2 4359
/* Repeated with SYS_ prefix */
@@ -717,3 +718,4 @@
#define SYS_execveat 4356
#define SYS_userfaultfd 4357
#define SYS_membarrier 4358
+#define SYS_mlock2 4359
diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h
index 203e243..a73b232 100644
--- a/arch/or1k/bits/syscall.h
+++ b/arch/or1k/bits/syscall.h
@@ -267,6 +267,7 @@
#define __NR_execveat 281
#define __NR_userfaultfd 282
#define __NR_membarrier 283
+#define __NR_mlock2 284
#define SYS_io_setup __NR_io_setup
#define SYS_io_destroy __NR_io_destroy
@@ -537,3 +538,4 @@
#define SYS_execveat __NR_execveat
#define SYS_userfaultfd __NR_userfaultfd
#define SYS_membarrier __NR_membarrier
+#define SYS_mlock2 __NR_mlock2
diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h
index 2dfec2f..e02f56f 100644
--- a/arch/powerpc/bits/syscall.h
+++ b/arch/powerpc/bits/syscall.h
@@ -367,6 +367,7 @@
#define __NR_switch_endian 363
#define __NR_userfaultfd 364
#define __NR_membarrier 365
+#define __NR_mlock2 378
/*
* repeated with SYS prefix
@@ -740,3 +741,4 @@
#define SYS_switch_endian 363
#define SYS_userfaultfd 364
#define SYS_membarrier 365
+#define SYS_mlock2 378
diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h
index 6240c35..4a1099d 100644
--- a/arch/x32/bits/syscall.h
+++ b/arch/x32/bits/syscall.h
@@ -279,6 +279,7 @@
#define __NR_bpf (__X32_SYSCALL_BIT + 321)
#define __NR_userfaultfd (__X32_SYSCALL_BIT + 323)
#define __NR_membarrier (__X32_SYSCALL_BIT + 324)
+#define __NR_mlock2 (__X32_SYSCALL_BIT + 325)
#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
@@ -611,6 +612,7 @@
#define SYS_bpf __NR_bpf
#define SYS_userfaultfd __NR_userfaultfd
#define SYS_membarrier __NR_membarrier
+#define SYS_mlock2 __NR_mlock2
#define SYS_rt_sigaction __NR_rt_sigaction
diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h
index 0ff5026..22aa716 100644
--- a/arch/x86_64/bits/syscall.h
+++ b/arch/x86_64/bits/syscall.h
@@ -323,6 +323,7 @@
#define __NR_execveat 322
#define __NR_userfaultfd 323
#define __NR_membarrier 324
+#define __NR_mlock2 325
@@ -653,3 +654,4 @@
#define SYS_execveat 322
#define SYS_userfaultfd 323
#define SYS_membarrier 324
+#define SYS_mlock2 325