From ed9c50fb67b9a2468b42eef280f11a9a2c0b2caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Date: Tue, 30 Jun 2026 15:01:47 +0200 Subject: [PATCH] ppc+riscv/irq: introduce a dummy irq_to_desc() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Acked-by: Jan Beulich Reviewed-by: Oleksii Kurochko master commit: ed39935f50b9b4cd4db27652804d260bd0081e67 master date: 2026-06-29 17:14:47 +0200 --- xen/arch/ppc/include/asm/irq.h | 6 ++++++ xen/arch/riscv/include/asm/irq.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/xen/arch/ppc/include/asm/irq.h b/xen/arch/ppc/include/asm/irq.h index 5c37d0cf25..fa70fd7d46 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__ */ diff --git a/xen/arch/riscv/include/asm/irq.h b/xen/arch/riscv/include/asm/irq.h index 2a48da2651..8fe87b19e9 100644 --- a/xen/arch/riscv/include/asm/irq.h +++ b/xen/arch/riscv/include/asm/irq.h @@ -25,6 +25,12 @@ static inline void arch_move_irqs(struct vcpu *v) BUG_ON("unimplemented"); } +static inline void *irq_to_desc(unsigned int irq) +{ + BUG_ON("unimplemented"); +} +#define irq_to_desc irq_to_desc + #endif /* ASM__RISCV__IRQ_H */ /*