From 35db9c65f36472493cd73b9db15777a8e66a32f4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 17 Feb 2015 07:21:01 +0000 Subject: [PATCH] ib_srpt: Suppress three more checkpatch warnings git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6107 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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. */