From: Russell King Date: Sat, 9 Aug 2014 07:43:11 +0000 (+0100) Subject: ARM: wire up memfd_create syscall X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e57e41931134e09fc6c03c8d4eb19d516cc6e59b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ARM: wire up memfd_create syscall Add the memfd_create syscall to ARM. Signed-off-by: Russell King --- diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h index aa9e9262ace4..3aaa75cae90c 100644 --- a/arch/arm/include/uapi/asm/unistd.h +++ b/arch/arm/include/uapi/asm/unistd.h @@ -411,6 +411,7 @@ #define __NR_renameat2 (__NR_SYSCALL_BASE+382) #define __NR_seccomp (__NR_SYSCALL_BASE+383) #define __NR_getrandom (__NR_SYSCALL_BASE+384) +#define __NR_memfd_create (__NR_SYSCALL_BASE+385) /* * The following SWIs are ARM private. diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 8e95c9ec9494..9f899d8fdcca 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S @@ -394,6 +394,7 @@ CALL(sys_renameat2) CALL(sys_seccomp) CALL(sys_getrandom) +/* 385 */ CALL(sys_memfd_create) #ifndef syscalls_counted .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls #define syscalls_counted