1 Do not activate the mac80211 tracing by default as it does not work with
2 kernel <= 2.6.32. Compat also includes include/trace/define_trace.h over
3 include/trace/events/module.h which makes this not compiling any more.
5 --- a/net/mac80211/Makefile
6 +++ b/net/mac80211/Makefile
7 @@ -24,8 +24,7 @@ mac80211-y := \
15 mac80211-$(CONFIG_MAC80211_LEDS) += led.o
16 mac80211-$(CONFIG_MAC80211_DEBUGFS) += \
17 @@ -42,6 +41,7 @@ mac80211-$(CONFIG_MAC80211_MESH) += \
19 mac80211-$(CONFIG_PM) += pm.o
21 +mac80211-$(CONFIG_MAC80211_DRIVER_API_TRACER) += driver-trace.o
22 CFLAGS_driver-trace.o := -I$(src)
24 # objects for PID algorithm
25 --- a/net/mac80211/driver-trace.h
26 +++ b/net/mac80211/driver-trace.h
28 #include <net/mac80211.h>
29 #include "ieee80211_i.h"
31 +#if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__)
33 +#define TRACE_EVENT(name, proto, ...) \
34 +static inline void trace_ ## name(proto) {}
35 +#undef DECLARE_EVENT_CLASS
36 +#define DECLARE_EVENT_CLASS(...)
38 +#define DEFINE_EVENT(evt_class, name, proto, ...) \
39 +static inline void trace_ ## name(proto) {}
43 #define TRACE_SYSTEM mac80211