ib_srpt: RHEL 5.3 build fix

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-11-05 08:53:35 +00:00
parent 544d61036c
commit edadea8fd0

View File

@@ -56,6 +56,16 @@
#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.0.0-pre"