backports: patch tracing for older kernels
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Apr 2013 20:13:47 +0000 (22:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 09:32:45 +0000 (11:32 +0200)
For some reason the tracing on older kernels requires
the tracing to be declared before it's defined; it's
broken when the trace header is only included to create
the tracepoints.

Since new kernels don't, add patches for the two places
that rely on the new behaviour.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
patches/collateral-evolutions/network/74-define-tracing/ath6kl.patch [new file with mode: 0644]
patches/collateral-evolutions/network/74-define-tracing/cfg80211.patch [new file with mode: 0644]

diff --git a/patches/collateral-evolutions/network/74-define-tracing/ath6kl.patch b/patches/collateral-evolutions/network/74-define-tracing/ath6kl.patch
new file mode 100644 (file)
index 0000000..5910f54
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/net/wireless/ath/ath6kl/trace.c
++++ b/drivers/net/wireless/ath/ath6kl/trace.c
+@@ -16,6 +16,7 @@
+ #include <linux/module.h>
++#include "trace.h"
+ #define CREATE_TRACE_POINTS
+ #include "trace.h"
diff --git a/patches/collateral-evolutions/network/74-define-tracing/cfg80211.patch b/patches/collateral-evolutions/network/74-define-tracing/cfg80211.patch
new file mode 100644 (file)
index 0000000..eeab23d
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/net/wireless/trace.c
++++ b/net/wireless/trace.c
+@@ -1,4 +1,5 @@
+ #include <linux/module.h>
++#include "trace.h"
+ #ifndef __CHECKER__
+ #define CREATE_TRACE_POINTS