[-mm patch] kernel/irq/manage.c: remove the empty set_irq_info()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

--- linux-2.6.12-rc3-mm2-full/include/linux/irq.h.old	2005-05-01 14:55:16.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/include/linux/irq.h	2005-05-01 17:56:12.000000000 +0200
@@ -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;
--- linux-2.6.12-rc3-mm2-full/kernel/irq/manage.c.old	2005-05-01 14:56:11.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/kernel/irq/manage.c	2005-05-01 14:56:24.000000000 +0200
@@ -40,10 +40,6 @@
 
 EXPORT_SYMBOL(synchronize_irq);
 
-#else
-void set_irq_info(unsigned int irq, cpumask_t mask)
-{
-}
 #endif
 
 /**

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux