diff --git a/scst/include/backport.h b/scst/include/backport.h index 75af117c9..88f5fa971 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -38,6 +38,18 @@ #define smp_mb__after_atomic_dec smp_mb__after_atomic #endif +/* */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) && !defined(WARN) +/* See also commit a8f18b909c0a3f22630846207035c8b84bb252b8 */ +#define WARN(condition, format...) do { \ + if (unlikely(condition)) { \ + printk(KERN_WARNING format); \ + WARN_ON(true); \ + } \ +} while (0) +#endif + /* */ #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d006cf288..590a4e9e2 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -68,16 +68,6 @@ #include "scst_debug.h" #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) && !defined(WARN) -/* See also commit a8f18b909c0a3f22630846207035c8b84bb252b8 */ -#define WARN(condition, format...) do { \ - if (unlikely(condition)) { \ - printk(KERN_WARNING format); \ - WARN_ON(true); \ - } \ -} while (0) -#endif - /* Name of this kernel module. */ #define DRV_NAME "ib_srpt" #define DRV_VERSION "3.3.0-rc#" __stringify(OFED_FLAVOR)