chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec9a1d9
)
basic: remove redundant check (#7320)
author
Topi Miettinen
<topimiettinen@users.noreply.github.com>
Mon, 13 Nov 2017 21:00:03 +0000
(21:00 +0000)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 13 Nov 2017 21:00:03 +0000
(21:00 +0000)
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
patch
|
blob
|
history
diff --git
a/src/basic/missing_syscall.h
b/src/basic/missing_syscall.h
index 424dbff1a33c9c020f13671fcbc7c963d799b6cb..54c174744001e049c0e8070a99f8de84ec72edca 100644
(file)
--- 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
-# el
if ! defined(__IGNORE_pkey_mprotect)
+# el
se
# warning "__NR_pkey_mprotect not defined for your architecture"
# endif
# endif