From 3bf7d6dca1ae4970c36cbcea0247e5df09e15130 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 30 Jul 2009 06:38:15 +0000 Subject: [PATCH] Compiles again with tracing disabled. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@990 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 3b6a8d374..376e250f2 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2318,6 +2318,7 @@ static void srpt_release_class_dev(struct device *dev) { } +#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING) static const struct { int flag; const char *const label; } srpt_trace_label[] = { @@ -2463,6 +2464,7 @@ static ssize_t srpt_store_trace_flags(struct class *class, count = -EINVAL; return count; } +#endif static struct class_attribute srpt_class_attrs[] = { #if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)