ARM: 8298/1: ARM_KERNMEM_PERMS only works with MMU enabled
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Jan 2015 16:58:33 +0000 (17:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 Jan 2015 15:23:31 +0000 (15:23 +0000)
commitfba289054f24d2550f47a1413e1ccc24f4165560
tree08d4b0617613092f1836ac0bfc32b65fc3f8daec
parented46092518aaed9e5266f8dd87ac12bf18cfc8e8
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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/Kconfig