genirq: Make GENERIC_IRQ_MULTI_HANDLER depend on !MULTI_IRQ_HANDLER
authorPalmer Dabbelt <[email protected]>
Wed, 4 Apr 2018 04:31:30 +0000 (21:31 -0700)
committerThomas Gleixner <[email protected]>
Wed, 4 Apr 2018 10:04:28 +0000 (12:04 +0200)
These config switches enable the same code in the core and the not yet
converted architecture code. They can be selected both by randconfig builds
and cause linker error because the same symbols are defined twice.

Make the new GENERIC_IRQ_MULTI_HANDLER depend on !MULTI_IRQ_HANDLER to
prevent that. The dependency will be removed once all architectures are
converted over.

Signed-off-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
kernel/irq/Kconfig

index 5f3e2baefca92e45442b9aa4a2b1399bbf0ce21e..c6766f326072d54322d460cb54afe225b6754ac5 100644 (file)
@@ -134,6 +134,7 @@ config GENERIC_IRQ_DEBUGFS
 endmenu
 
 config GENERIC_IRQ_MULTI_HANDLER
+       depends on !MULTI_IRQ_HANDLER
        bool
        help
          Allow to specify the low level IRQ handler at run time.