]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/mm: add ARCH_PKEY_BITS to Kconfig
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:44 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:52:39 +0000 (12:52 +0100)
The new config option specifies how many bits are in each PKEY.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Aneesh Kumar K.V <aneesh.kumar@kernel.org>
Cc: Naveen N. Rao <naveen.n.rao@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20240822151113.1479789-2-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/powerpc/Kconfig

index d7b09b064a8ac594d347c235e15d40b7a8daa896..8a4ee57cd4ef1ad492ee09ab6bc1858883dfb095 100644 (file)
@@ -1026,6 +1026,10 @@ config PPC_MEM_KEYS
 
          If unsure, say y.
 
+config ARCH_PKEY_BITS
+       int
+       default 5
+
 config PPC_SECURE_BOOT
        prompt "Enable secure boot support"
        bool