ARM: disallow PCI with MMU=n again
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Sep 2022 19:53:09 +0000 (21:53 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 16 Sep 2022 19:53:09 +0000 (21:53 +0200)
My cleanup patch allowed enabling PCI on MMU-less builds,
which breaks for at least one driver and is never required:

   In file included from include/linux/irqchip/arm-gic-v3.h:604,
                    from drivers/pci/controller/pcie-iproc.c:17:
   arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_EOIR1_EL1':
arch/arm/include/asm/arch_gicv3.h:44:9: error: implicit declaration of function 'write_sysreg' [-Werror=implicit-function-declaration]

Fixes: 6fd09c9afa49 ("ARM: Kconfig: clean up platform selection")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/Kconfig

index e28e3d09d97d7f3b97e31ae709573b6c928bdd16..4edb6b4a87c449d4f5743eea92ad64a52814e11a 100644 (file)
@@ -110,7 +110,7 @@ config ARM
        select HAVE_MOD_ARCH_SPECIFIC
        select HAVE_NMI
        select HAVE_OPTPROBES if !THUMB2_KERNEL
-       select HAVE_PCI
+       select HAVE_PCI if MMU
        select HAVE_PERF_EVENTS
        select HAVE_PERF_REGS
        select HAVE_PERF_USER_STACK_DUMP