From: Hauke Mehrtens Date: Thu, 31 Mar 2011 16:21:34 +0000 (-0700) Subject: compat: fix build for kernel < 2.6.29 X-Git-Tag: v2.6.39-rc1-2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=96365b00bd365489d25f3ae67f6718a8ba696e7b;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: fix build for kernel < 2.6.29 get_irq_desc_chip(), get_irq_desc_data(), get_irq_desc_chip_data() and get_irq_desc_msi() are not available in kernel < 2.6.29. Luis please add this into the linux-2.6.39.y branch. Cc: Thomas Gleixner Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.39.h b/include/linux/compat-2.6.39.h index 2c62d90..104fce0 100644 --- a/include/linux/compat-2.6.39.h +++ b/include/linux/compat-2.6.39.h @@ -71,6 +71,8 @@ static inline void irq_set_probe(unsigned int irq) { set_irq_probe(irq); } + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc) { return get_irq_desc_chip(desc); @@ -89,6 +91,7 @@ static inline struct msi_desc *irq_desc_get_msi_desc(struct irq_desc *desc) { return get_irq_desc_msi(desc); } +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) */ #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39)) */