From: Pavel Roskin Date: Wed, 29 Jun 2011 22:01:10 +0000 (-0400) Subject: Signed-off-by: Pavel Roskin X-Git-Tag: compat-2011-09-28~25 X-Git-Url: https://git.openfabrics.org/?p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git;a=commitdiff_plain;h=7d35284cf37755408256ba0e0ede8cb961527d73 Signed-off-by: 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. --- diff --git a/include/linux/compat-2.6.39.h b/include/linux/compat-2.6.39.h index b4d85fd..406f8eb 100644 --- a/include/linux/compat-2.6.39.h +++ b/include/linux/compat-2.6.39.h @@ -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)