projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f36c94
)
mm/pkeys: Add an empty arch_pkeys_enabled()
author
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 13 Apr 2018 13:54:52 +0000
(23:54 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 9 May 2018 01:51:46 +0000
(11:51 +1000)
Add an empty arch_pkeys_enabled() in linux/pkeys.h for the
CONFIG_ARCH_HAS_PKEYS=n case.
Split out of a patch by Ram Pai <linuxram@us.ibm.com>.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
include/linux/pkeys.h
patch
|
blob
|
history
diff --git
a/include/linux/pkeys.h
b/include/linux/pkeys.h
index
946cb77
..
2955ba9
100644
(file)
--- a/
include/linux/pkeys.h
+++ b/
include/linux/pkeys.h
@@
-39,6
+39,11
@@
static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
return 0;
}
+static inline bool arch_pkeys_enabled(void)
+{
+ return false;
+}
+
static inline void copy_init_pkru_to_fpregs(void)
{
}