Skip to contentSkip to conversation

compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+

PATCH In review Pavel Roskin 2 participants 2 messages Jun 29, 2011 – Jun 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+

set_irq_probe() and set_irq_probe() are missing on Linux 2.6.24, so the code won't compile. compat-wireless doesn't need those functions. Keep the functions for Linux 2.6.25 and newer for other compat packages.

---
 include/linux/compat-2.6.39.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/compat-2.6.39.h +3 -0
index b4d85fd..406f8eb 100644
@@ -64,6 +64,8 @@ static inline struct msi_desc *irq_get_msi_desc(unsigned int irq)
 {
 	return get_irq_msi(irq);
 }
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
 static inline void irq_set_noprobe(unsigned int irq)
 {
 	set_irq_noprobe(irq);
@@ -72,6 +74,7 @@ static inline void irq_set_probe(unsigned int irq)
 {
 	set_irq_probe(irq);
 }
+#endif
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
 static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc)
#1 lore raw
Quoted 5 lines · Pavel Roskin

set_irq_probe() and set_irq_probe() are missing on Linux 2.6.24, so the code won't compile.  compat-wireless doesn't need those functions.  Keep the functions for Linux 2.6.25 and newer for other compat packages.

Applied and pushed, after my siesta from Colombia, thanks!

Luis