diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h index ec87b212ff7d03c446bc16b0429baeb86c5d645c..7bf89bc8cbca32762d082664c1839d8d642f8782 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h @@ -41,6 +41,12 @@ extern struct irq_desc *irq_to_desc(unsigned int irq); ; \ else +#ifdef CONFIG_SMP +#define irq_node(irq) (irq_to_desc(irq)->node) +#else +#define irq_node(irq) 0 +#endif + #endif /* CONFIG_GENERIC_HARDIRQS */ #define for_each_irq_nr(irq) \