diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2018-04-13 16:54:52 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-05-09 04:51:46 +0300 |
commit | 4414ef9536c398ebc4e1443d59fbae8fea53732b (patch) | |
tree | e5861c404f3d4ae2d6ec63a117ead6aac20ec077 /include | |
parent | 3f36c94239658a79a4deeb84a2e0ebf005f083fc (diff) | |
download | linux-4414ef9536c398ebc4e1443d59fbae8fea53732b.tar.xz |
mm/pkeys: Add an empty arch_pkeys_enabled()
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pkeys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h index 946cb773b79f..2955ba976048 100644 --- 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) { } |