From 0f48edebdb679406a22f1d4ce81be64f0bb32c5b Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Mon, 13 Nov 2017 21:00:03 +0000 Subject: basic: remove redundant check (#7320) The check is redundant as the whole block is only evaluated if __IGNORE_pkey_mprotect is not defined. Change to #else. --- src/basic/missing_syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic/missing_syscall.h') diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 424dbff1a..54c174744 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -375,7 +375,7 @@ static inline int bpf(int cmd, union bpf_attr *attr, size_t size) { # if _MIPS_SIM == _MIPS_SIM_ABI64 # define __NR_pkey_mprotect 5323 # endif -# elif ! defined(__IGNORE_pkey_mprotect) +# else # warning "__NR_pkey_mprotect not defined for your architecture" # endif # endif -- cgit v1.2.3