mm: use ARCH_PKEY_BITS to define VM_PKEY_BITN
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:46 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:52:40 +0000 (12:52 +0100)
commit9f82f15ddfdd60bb9820f09737333b2345e22ab3
treee9c4eb3da779eb7179449b696cdfa20089efbebb
parent5626f8d45e0951f418cfc06ad8be71e3f51e585f
mm: use ARCH_PKEY_BITS to define VM_PKEY_BITN

Use the new CONFIG_ARCH_PKEY_BITS to simplify setting these bits
for different architectures.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-mm@kvack.org
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20240822151113.1479789-4-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
fs/proc/task_mmu.c
include/linux/mm.h