mm/pkeys, powerpc, x86: Provide an empty vma_pkey() in linux/pkeys.h
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 Apr 2018 13:41:42 +0000 (23:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 May 2018 01:50:41 +0000 (11:50 +1000)
commitdbec10e58deadba596d59a0ab4a394fef271992f
treeab9cdbcbbe1989a41bd06df29e5363f94e23a9a5
parentcd419a513146367af08b895a8f7d360e4e77b638
mm/pkeys, powerpc, x86: Provide an empty vma_pkey() in linux/pkeys.h

Consolidate the pkey handling by providing a common empty definition
of vma_pkey() in pkeys.h when CONFIG_ARCH_HAS_PKEYS=n.

This also removes another entanglement of pkeys.h and
asm/mmu_context.h.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Ram Pai <linuxram@us.ibm.com>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
arch/powerpc/include/asm/mmu_context.h
arch/x86/include/asm/mmu_context.h
include/linux/pkeys.h