[PATCH][GIT PULL] tracing/mac80211: Move TRACE_SYSTEM out of #ifprotection

From: Steven Rostedt
Date: Tue Apr 06 2010 - 21:58:11 EST



John,

You can pull this or just use this patch. Which ever you prefer.

Please pull the latest wireless tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
wireless


Steven Rostedt (1):
tracing/mac80211: Move TRACE_SYSTEM out of #if protection

----
net/mac80211/driver-trace.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---------------------------
commit 27322da6e367b9e83d6b734f9a9ca3b8827d7b24
Author: Steven Rostedt <srostedt@xxxxxxxxxx>
Date: Tue Apr 6 21:50:55 2010 -0400

tracing/mac80211: Move TRACE_SYSTEM out of #if protection

As explained in:

commit d0b6e04a4cd8360e3c9c419f7c30a3081a0c142a
tracing/events: Move TRACE_SYSTEM outside of include guard

The TRACE_SYSTEM must be outside the #if include protection.

Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
Cc: John W. Linville <linville@xxxxxxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h
index 41baf73..f5a4239 100644
--- a/net/mac80211/driver-trace.h
+++ b/net/mac80211/driver-trace.h
@@ -1,3 +1,6 @@
+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM mac80211
+
#if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
#define __MAC80211_DRIVER_TRACE

@@ -11,9 +14,6 @@
static inline void trace_ ## name(proto) {}
#endif

-#undef TRACE_SYSTEM
-#define TRACE_SYSTEM mac80211
-
#define MAXNAME 32
#define LOCAL_ENTRY __array(char, wiphy_name, 32)
#define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/