In preparation for irq_to_desc() being called by common IRQ code.
PowerPC doesn't have an irq_desc array defined, so it cannot use the
generic irq_to_desc macro in the common header.
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
xen/arch/ppc/include/asm/irq.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xen/arch/ppc/include/asm/irq.h b/xen/arch/ppc/include/asm/irq.h
index 5c37d0cf2500..fa70fd7d46dc 100644
--- a/xen/arch/ppc/include/asm/irq.h
+++ b/xen/arch/ppc/include/asm/irq.h
@@ -30,4 +30,10 @@ static inline int platform_get_irq(const struct
dt_device_node *device, int inde
BUG_ON("unimplemented");
}
+static inline void *irq_to_desc(unsigned int irq)
+{
+ BUG_ON("unimplemented");
+}
+#define irq_to_desc irq_to_desc
+
#endif /* __ASM_PPC_IRQ_H__ */