Use the new CONFIG_ARCH_PKEY_BITS to simplify setting these bits
for different architectures.
Signed-off-by: Joey Gouly
Cc: Andrew Morton
Cc: linux-fsde...@vger.kernel.org
Cc: linux...@kvack.org
---
fs/proc/task_mmu.c | 2 ++
include/linux/mm.h | 16 ++--
2 files changed, 12
On 5/3/24 06:01, Joey Gouly wrote:
> #ifdef CONFIG_ARCH_HAS_PKEYS
> -# define VM_PKEY_SHIFT VM_HIGH_ARCH_BIT_0
> -# define VM_PKEY_BIT0VM_HIGH_ARCH_0 /* A protection key is a 4-bit
> value */
> -# define VM_PKEY_BIT1VM_HIGH_ARCH_1 /* on x86 and 5-bit value on
> ppc64