compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+
PATCH 1/1 compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+
Signed-off-by Pavel Roskin <[email protected]>
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
@@ -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)
Quoted 5 lines · Pavel Roskin
Signed-off-by Pavel Roskin <[email protected]>
set_irq_probe()andset_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