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>
--- /dev/null
+--- 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"
+
--- /dev/null
+--- 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