summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-08-11 14:24:47 +0100
committerMaciej Wereski <m.wereski@partner.samsung.com>2014-12-29 09:31:36 +0100
commit08869acfede2b04aeaae72a7a40c0c672368bdae (patch)
treeab4045ff8b9d4d3ddf2f84631f9e14224da00526
parent93cfbb830144d1f395c40baade09cd8dc44fb498 (diff)
downloadlinux-3.10-08869acfede2b04aeaae72a7a40c0c672368bdae.tar.gz
linux-3.10-08869acfede2b04aeaae72a7a40c0c672368bdae.tar.bz2
linux-3.10-08869acfede2b04aeaae72a7a40c0c672368bdae.zip
asm-generic: add memfd_create system call to unistd.h
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. Cc: Arnd Bergmann <arnd@arndb.de> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Change-Id: I7fff684716a86ad9f10e19755480c32ce9eeb861 Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=503e6636b6f96056210062be703356f4253b6db9 Backported-by: Maciej Wereski <m.wereski@partner.samsung.com> Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
-rw-r--r--include/uapi/asm-generic/unistd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
index 0cc74c4403e..9170931b0dc 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -692,9 +692,16 @@ __SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
__SYSCALL(__NR_kcmp, sys_kcmp)
#define __NR_finit_module 273
__SYSCALL(__NR_finit_module, sys_finit_module)
+__SYSCALL(274, sys_ni_syscall) /* 274 for sched_setattr */
+__SYSCALL(274, sys_ni_syscall) /* 275 for sched_getattr */
+__SYSCALL(274, sys_ni_syscall) /* 276 for renameat2 */
+__SYSCALL(274, sys_ni_syscall) /* 277 for seccomp */
+__SYSCALL(274, sys_ni_syscall) /* 278 for getrandom */
+#define _NR_memfd_create 279
+__SYSCALL(__NR_memfd_create, sys_memfd_create)
#undef __NR_syscalls
-#define __NR_syscalls 274
+#define __NR_syscalls 280
/*
* All syscalls below here should go away really,