Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fba28905 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Russell King
Browse files

ARM: 8298/1: ARM_KERNMEM_PERMS only works with MMU enabled



The recently added ARM_KERNMEM_PERMS feature works by manipulating
the kernel page tables, which obviously requires an MMU. Trying
to enable this feature when the MMU is disabled results in a lot
of compile errors in mm/init.c, so let's add a Kconfig dependency
to avoid that case.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ed460925
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1012,6 +1012,7 @@ config ARCH_SUPPORTS_BIG_ENDIAN


config ARM_KERNMEM_PERMS
config ARM_KERNMEM_PERMS
	bool "Restrict kernel memory permissions"
	bool "Restrict kernel memory permissions"
	depends on MMU
	help
	help
	  If this is set, kernel memory other than kernel text (and rodata)
	  If this is set, kernel memory other than kernel text (and rodata)
	  will be made non-executable. The tradeoff is that each region is
	  will be made non-executable. The tradeoff is that each region is