Skip to contentSkip to conversation

irqchip/irqchip-goldfish-pic: select GENERIC_IRQ_CHIP to fix build

PATCH Applied Randy Dunlap 2 participants 2 messages Sep 5, 2021 – Sep 22, 2021 irqchip drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/irqchip-goldfish-pic: select GENERIC_IRQ_CHIP to fix build

irq-goldfish-pic uses GENERIC_IRQ_CHIP interfaces so select that symbol to fix build errors.

Fixes these build errors:

mips-linux-ld: drivers/irqchip/irq-goldfish-pic.o: in function `goldfish_pic_of_init':
irq-goldfish-pic.c:(.init.text+0xc0): undefined reference to `irq_alloc_generic_chip'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0xf4): undefined reference to `irq_gc_unmask_enable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0xf8): undefined reference to `irq_gc_unmask_enable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x100): undefined reference to `irq_gc_mask_disable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x104): undefined reference to `irq_gc_mask_disable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x11c): undefined reference to `irq_setup_generic_chip'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x168): undefined reference to `irq_remove_generic_chip'

Fixes 4235ff50cf98 ("irqchip/irq-goldfish-pic: Add Goldfish PIC driver")
Cc Miodrag Dinic <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Goran Ferenc <[email protected]>
Cc Aleksandar Markovic <[email protected]>
---
 drivers/irqchip/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/irqchip/Kconfig +1 -0
@@ -409,6 +409,7 @@ config MESON_IRQ_GPIO
 config GOLDFISH_PIC
        bool "Goldfish programmable interrupt controller"
        depends on MIPS && (GOLDFISH || COMPILE_TEST)
+       select GENERIC_IRQ_CHIP
        select IRQ_DOMAIN
        help
          Say yes here to enable Goldfish interrupt controller driver used
#1 lore raw

[irqchip: irq/irqchip-fixes] irqchip/goldfish-pic: Select GENERIC_IRQ_CHIP to fix build

The following commit has been merged into the irq/irqchip-fixes branch of irqchip:

The following commit has been merged into the irq/irqchip-fixes branch of irqchip:

Commit-ID:     969ac78db78c723a24e9410666b457cc1b0cb3c3
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/969ac78db78c723a24e9410666b457cc1b0cb3c3
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Sun, 05 Sep 2021 09:25:19 -07:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Wed, 22 Sep 2021 14:33:09 +01:00

irqchip/goldfish-pic: Select GENERIC_IRQ_CHIP to fix build

irq-goldfish-pic uses GENERIC_IRQ_CHIP interfaces so select that symbol to fix build errors.

Fixes these build errors:

mips-linux-ld: drivers/irqchip/irq-goldfish-pic.o: in function `goldfish_pic_of_init':
irq-goldfish-pic.c:(.init.text+0xc0): undefined reference to `irq_alloc_generic_chip'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0xf4): undefined reference to `irq_gc_unmask_enable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0xf8): undefined reference to `irq_gc_unmask_enable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x100): undefined reference to `irq_gc_mask_disable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x104): undefined reference to `irq_gc_mask_disable_reg'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x11c): undefined reference to `irq_setup_generic_chip'
mips-linux-ld: irq-goldfish-pic.c:(.init.text+0x168): undefined reference to `irq_remove_generic_chip'

Fixes 4235ff50cf98 ("irqchip/irq-goldfish-pic: Add Goldfish PIC driver")
Cc Miodrag Dinic <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Goran Ferenc <[email protected]>
Cc Aleksandar Markovic <[email protected]>
---
 drivers/irqchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/irqchip/Kconfig +1 -0
index 4d5924e..aca7b59 100644
@@ -409,6 +409,7 @@ config MESON_IRQ_GPIO
 config GOLDFISH_PIC
        bool "Goldfish programmable interrupt controller"
        depends on MIPS && (GOLDFISH || COMPILE_TEST)
+       select GENERIC_IRQ_CHIP
        select IRQ_DOMAIN
        help
          Say yes here to enable Goldfish interrupt controller driver used