mm, powerpc, x86: define VM_PKEY_BITx bits if CONFIG_ARCH_HAS_PKEYS is enabled
authorRam Pai <linuxram@us.ibm.com>
Tue, 27 Mar 2018 09:09:26 +0000 (02:09 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 May 2018 14:35:33 +0000 (00:35 +1000)
commit5212213aa5a2359dd0474c9dab22b6220b591fe1
tree1ed1961959d7c999f27f6066f0d8e62f071233d5
parent6da6c0db5316275015e8cc2959f12a17584aeb64
mm, powerpc, x86: define VM_PKEY_BITx bits if CONFIG_ARCH_HAS_PKEYS is enabled

VM_PKEY_BITx are defined only if CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
is enabled. Powerpc also needs these bits. Hence lets define the
VM_PKEY_BITx bits for any architecture that enables
CONFIG_ARCH_HAS_PKEYS.

Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pkeys.h
fs/proc/task_mmu.c
include/linux/mm.h