kernel/irq/manage.c: remove the empty set_irq_info()
PATCH 1/1 kernel/irq/manage.c: remove the empty set_irq_info()
I do still not like an empty global function.
All other cases are already handled by static inline's, so let's do the same with this one.
Signed-off-by Adrian Bunk <[email protected]>
---
include/linux/irq.h | 8 +++++++- kernel/irq/manage.c | 4 ---- 2 files changed, 7 insertions(+), 5 deletions(-)
include/linux/irq.h renamed from include/linux/irq.h.old +7 -1
@@ -158,10 +158,16 @@set_native_irq_info (irq, mask); }#endif // CONFIG_PCI_MSI +#else +#define move_irq (x)#define move_native_irq (x) -extern void set_irq_info (unsigned int irq,cpumask_t mask); + +static inline void set_irq_info (int irq,cpumask_t mask) +{ +} +#endif // CONFIG_GENERIC_PENDING_IRQ extern int no_irq_affinity;
kernel/irq/manage.c renamed from kernel/irq/manage.c.old +0 -4
@@ -40,10 +40,6 @@EXPORT_SYMBOL (synchronize_irq); -#else -void set_irq_info (unsigned int irq,cpumask_t mask) -{ -}#endif /**
Quoted 6 lines · Adrian Bunk
I do still not like an empty global function.
All other cases are already handled by static inline's, so let's do the same with this one.
Signed-off-by Adrian Bunk <[email protected]>
Acked-by Zwane Mwaikambo <[email protected]>
Thanks Adrian