Skip to content

Commit a8b289f

Browse files
arndbKAGA-KOKO
authored andcommitted
irqchip/irq-msi-lib: Fix build with PCI disabled
The armada-370-xp irqchip fails in some randconfig builds because of a missing declaration: In file included from drivers/irqchip/irq-armada-370-xp.c:23: include/linux/irqchip/irq-msi-lib.h:25:39: error: 'struct msi_domain_info' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] Add a forward declaration for the msi_domain_info structure. [ tglx: Fixed up the subsystem prefix. Is it really that hard to get right? ] Fixes: e51b274 ("irqchip: Make irq-msi-lib.h globally available") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 68ea85d commit a8b289f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/irqchip/irq-msi-lib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#define MATCH_PLATFORM_MSI BIT(DOMAIN_BUS_PLATFORM_MSI)
1919

20+
struct msi_domain_info;
2021
int msi_lib_irq_domain_select(struct irq_domain *d, struct irq_fwspec *fwspec,
2122
enum irq_domain_bus_token bus_token);
2223

0 commit comments

Comments
 (0)