From: Florian Weimer Date: Tue, 3 Mar 2020 11:16:35 +0000 (+0100) Subject: Linux: pkey_mprotect syscall number is always available X-Git-Tag: glibc-2.32~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d9f1add86e356209da64f50cb90583c2791c1c0;p=thirdparty%2Fglibc.git Linux: pkey_mprotect syscall number is always available Due to the built-in tables, __NR_pkey_mprotect is always defined. Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/unix/sysv/linux/pkey_mprotect.c b/sysdeps/unix/sysv/linux/pkey_mprotect.c index 5d372edfd54..4ec1feba2ec 100644 --- a/sysdeps/unix/sysv/linux/pkey_mprotect.c +++ b/sysdeps/unix/sysv/linux/pkey_mprotect.c @@ -28,10 +28,5 @@ pkey_mprotect (void *addr, size_t len, int prot, int pkey) /* If the key is -1, the system call is precisely equivalent to mprotect. */ return __mprotect (addr, len, prot); -#ifdef __NR_pkey_mprotect return INLINE_SYSCALL_CALL (pkey_mprotect, addr, len, prot, pkey); -#else - __set_errno (ENOSYS); - return -1; -#endif }