ARM: 8379/1: disable CONFIG_PTDUMP on !MMU
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 May 2015 15:07:51 +0000 (16:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 27 May 2015 23:29:22 +0000 (00:29 +0100)
It's obviously pointless to dump page tables when the MMU is disabled,
and even trying to build this code results in numerous build errors
like these:

../arch/arm/mm/dump.c:56:11: error: 'L_PTE_USER' undeclared here (not in a function)
   .mask = L_PTE_USER,
           ^
../arch/arm/mm/dump.c:61:11: error: 'L_PTE_RDONLY' undeclared here (not in a function)
   .mask = L_PTE_RDONLY,
           ^
../arch/arm/mm/dump.c:66:11: error: 'L_PTE_XN' undeclared here (not in a function)
   .mask = L_PTE_XN,
           ^

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig.debug

index 0c12ffb155a23c604c9bbb9b849a913d359e34ae..0c5ff3ecc0bc4720c78d00beb6d113a94888b66b 100644 (file)
@@ -5,6 +5,7 @@ source "lib/Kconfig.debug"
 config ARM_PTDUMP
        bool "Export kernel pagetable layout to userspace via debugfs"
        depends on DEBUG_KERNEL
+       depends on MMU
        select DEBUG_FS
        ---help---
          Say Y here if you want to show the kernel pagetable layout in a