From 964c67e5b012aa9f4617d70bd75b56233cfbd528 Mon Sep 17 00:00:00 2001 From: Kyle Harrison Date: Mon, 7 Oct 2019 12:25:34 +0100 Subject: [PATCH] ARM: Fix build after memfd_create syscall Error: __NR_syscalls is not equal to the size of the syscall table Change-Id: I26519fb6be3882893ca4e82d8a011a6abe1a6f53 --- arch/arm/include/asm/unistd.h | 3 ++- arch/arm/include/uapi/asm/unistd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index f325d838eb5..32640c431a0 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h @@ -20,7 +20,8 @@ * account for the padding in the syscall table */ #define __NR_syscalls (388) - /* + +/* * *NOTE*: This is a ghost syscall private to the kernel. Only the * __kuser_cmpxchg code in entry-armv.S should be aware of its * existence. Don't ever use this from user code. diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h index c25ddf320f7..23d74d883d9 100644 --- a/arch/arm/include/uapi/asm/unistd.h +++ b/arch/arm/include/uapi/asm/unistd.h @@ -414,6 +414,7 @@ #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. -- 2.20.1