]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: fix building NOMMU ARMv4/v5 kernels
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Mar 2022 14:40:47 +0000 (15:40 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 12 Mar 2022 09:25:20 +0000 (09:25 +0000)
commit6e4cf89b5c4b93b41e6e99edf9ff0e4eba99356b
treebe695dde9ff4d44b084956849b72c1f32f372a25
parentaf8db7334a3f5e710fc68003f34d5e9ef2bb66de
ARM: fix building NOMMU ARMv4/v5 kernels

The removal of the old-style irq entry broke obscure NOMMU
configurations on machines that have an MMU:

ld.lld: error: undefined symbol: generic_handle_arch_irq
 referenced by kernel/entry-armv.o:(__irq_svc) in archive arch/arm/built-in.a

A follow-up patch to convert nvic to the generic_handle_arch_irq()
could have fixed this by removing the Kconfig conditional, but did
it differently.

Change the Kconfig logic so ARM machines now unconditionally
enable the feature.

I have also submitted a patch to remove support for the configurations
that broke, but fixing the regression first is a trivial and correct
change.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: f3232fce8721 ("ARM: remove old-style irq entry")
Fixes: a357ea348d43 ("irqchip: nvic: Use GENERIC_IRQ_MULTI_HANDLER")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig
drivers/irqchip/Kconfig