From 7ffd70d3edcd96768ada03b9b524bff265f9b0b8 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 12 Apr 2013 22:13:47 +0200 Subject: [PATCH] backports: patch tracing for older kernels 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 --- .../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 000000000000..5910f54d6c59 --- /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 + ++#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 000000000000..eeab23dba324 --- /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 ++#include "trace.h" + + #ifndef __CHECKER__ + #define CREATE_TRACE_POINTS -- 2.30.2