Builds again when CONFIG_SCST_DEBUG has not been defined.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 23 Sep 2009 06:50:49 +0000 (06:50 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 23 Sep 2009 06:50:49 +0000 (06:50 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1129 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index 1df516b..b76e7b8 100644 (file)
@@ -94,6 +94,8 @@ static unsigned long trace_flag = DEFAULT_SRPT_TRACE_FLAGS;
 module_param(trace_flag, long, 0644);
 MODULE_PARM_DESC(trace_flag,
                 "Trace flags for the ib_srpt kernel module.");
+#endif
+#if defined(CONFIG_SCST_DEBUG)
 static unsigned long processing_delay_in_us;
 module_param(processing_delay_in_us, long, 0744);
 MODULE_PARM_DESC(processing_delay_in_us,
@@ -1459,8 +1461,10 @@ static void srpt_completion(struct ib_cq *cq, void *ctx)
                        }
                }
 
+#if defined(CONFIG_SCST_DEBUG)
                if (processing_delay_in_us <= MAX_UDELAY_MS * 1000)
                        udelay(processing_delay_in_us);
+#endif
        }
 }