diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d01724f2b..b036e747b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -43,14 +43,21 @@ #include #include #include -#include +#if !defined(INSIDE_KERNEL_TREE) +#include +#endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) +#include +#else #include +#endif #if defined(CONFIG_SCST_PROC) #if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING) #include #include #endif #endif +#include #include "ib_srpt.h" #include "srp-ext.h" #define LOG_PREFIX "ib_srpt" /* Prefix for SCST tracing macros. */ @@ -67,7 +74,7 @@ printk(KERN_WARNING format); \ WARN_ON(true); \ } \ -} while(0); +} while (0) #endif /* Name of this kernel module. */