[RFC/RFT 03/42] backports: patch tracing for older kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

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@xxxxxxxxx>
---
 .../network/74-define-tracing/ath6kl.patch                     | 10 ++++++++++
 .../network/74-define-tracing/cfg80211.patch                   |  8 ++++++++
 2 files changed, 18 insertions(+)
 create mode 100644 patches/collateral-evolutions/network/74-define-tracing/ath6kl.patch
 create mode 100644 patches/collateral-evolutions/network/74-define-tracing/cfg80211.patch

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
index 0000000..5910f54
--- /dev/null
+++ b/patches/collateral-evolutions/network/74-define-tracing/ath6kl.patch
@@ -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
index 0000000..eeab23d
--- /dev/null
+++ b/patches/collateral-evolutions/network/74-define-tracing/cfg80211.patch
@@ -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
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux