asm-generic: add memfd_create system call to unistd.h lineage-17.0
authorWill Deacon <will.deacon@arm.com>
Mon, 11 Aug 2014 13:24:47 +0000 (14:24 +0100)
committerDanny Wood <danwood76@gmail.com>
Fri, 8 Nov 2019 12:04:32 +0000 (12:04 +0000)
Commit 9183df25fe7b ("shm: add memfd_create() syscall") added a new
system call (memfd_create) but didn't update the asm-generic unistd
header.

This patch adds the new system call to the asm-generic version of
unistd.h so that it can be used by architectures such as arm64.

Change-Id: I173b1e5b6087fcea7d226a9f55f792432515897d
Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/unistd.h
arch/arm64/include/asm/unistd32.h
include/uapi/asm-generic/unistd.h

index f661d3048174b159e871db12a3731623ba7db245..90ca59dc963146bbe7f7d232d7a5573d3bd51d74 100644 (file)
@@ -43,7 +43,7 @@
 #define __ARM_NR_compat_cacheflush     (__ARM_NR_COMPAT_BASE+2)
 #define __ARM_NR_compat_set_tls                (__ARM_NR_COMPAT_BASE+5)
 
-#define __NR_compat_syscalls           385
+#define __NR_compat_syscalls           386
 #endif
 
 #define __ARCH_WANT_SYS_CLONE
index 7ea77dae4ba7095630b49d7136a8a2bcb7ba9515..d50f162214b4c901fd44eb5953cd9bc21ecff01d 100644 (file)
@@ -791,3 +791,5 @@ __SYSCALL(382, sys_ni_syscall)
 __SYSCALL(__NR_seccomp, sys_seccomp)
 #define __NR_getrandom 384
 __SYSCALL(__NR_getrandom, sys_getrandom)
+#define __NR_memfd_create 385
+__SYSCALL(__NR_memfd_create, sys_memfd_create)
index 348d28cab5794cf52970053ad34cecb1b2cf5577..022cf2f1a328e64eb2afa812c2d1d9724e7e9e1c 100644 (file)
@@ -704,9 +704,11 @@ __SYSCALL(__NR_renameat2, sys_renameat2)
 __SYSCALL(__NR_seccomp, sys_seccomp)
 #define __NR_getrandom 278
 __SYSCALL(__NR_getrandom, sys_getrandom)
+#define __NR_memfd_create 279
+__SYSCALL(__NR_memfd_create, sys_memfd_create)
 
 #undef __NR_syscalls
-#define __NR_syscalls 279
+#define __NR_syscalls 280
 
 /*
  * All syscalls below here should go away really,