Skip to content

Commit

Permalink
mm/pkeys: Add an empty arch_pkeys_enabled()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman committed May 9, 2018
1 parent 3f36c94 commit 4414ef9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pkeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
Expand Down

0 comments on commit 4414ef9

Please sign in to comment.