From: Hauke Mehrtens Date: Wed, 31 Aug 2011 22:20:10 +0000 (+0200) Subject: compat: add __always_unused X-Git-Tag: compat-2011-09-28~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2e1ae46654ef7cb93406fc5b327e026b7bbf84bd;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: add __always_unused Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h index 8aabda0..43f1989 100644 --- a/include/linux/compat-2.6.33.h +++ b/include/linux/compat-2.6.33.h @@ -138,6 +138,12 @@ static inline bool pci_is_pcie(struct pci_dev *dev) #endif } +#ifdef __GNUC__ +#define __always_unused __attribute__((unused)) +#else +#define __always_unused /* unimplemented */ +#endif + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ #endif /* LINUX_26_33_COMPAT_H */