提交 4414ef95 编写于 作者: M Michael Ellerman

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: NMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: NDave Hansen <dave.hansen@intel.com>
上级 3f36c942
...@@ -39,6 +39,11 @@ static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, ...@@ -39,6 +39,11 @@ static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
return 0; return 0;
} }
static inline bool arch_pkeys_enabled(void)
{
return false;
}
static inline void copy_init_pkru_to_fpregs(void) static inline void copy_init_pkru_to_fpregs(void)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册