MIPS: OCTEON: Fix build error when configured without PCI_MSI
PATCH 1/3 MIPS: OCTEON: Fix build error when configured without PCI_MSI
From: David Daney <[email protected]>
The build dies with complaints about missing definition of OCTEON_IRQ_RST. This symbol was removed, so don't use it as part of the definition of OCTEON_IRQ_LAST.
Set OCTEON_IRQ_LAST to 127 so there is space for all the automatically allocated (via irq_domain) irqs.
Signed-off-by David Daney <[email protected]>
--- arch/mips/include/asm/mach-cavium-octeon/irq.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
arch/mips/include/asm/mach-cavium-octeon/irq.h +3 -2
@@ -50,6 +50,9 @@ enum octeon_irq {OCTEON_IRQ_MII0 ,OCTEON_IRQ_MII1 ,OCTEON_IRQ_BOOTDMA , +#ifndef CONFIG_PCI_MSI +OCTEON_IRQ_LAST =127 +#endif };#ifdef CONFIG_PCI_MSI
@@ -58,8 +61,6 @@ enum octeon_irq {#define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255)#define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1) -#else -#define OCTEON_IRQ_LAST (OCTEON_IRQ_RST + 1)#endif #endif
Signature · 1 line
1.7.2.3