From 764f90598cdf3d6b24cabfffd5f65713145b39af Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 12 Oct 2009 23:19:12 +0200 Subject: [PATCH] Move trace headers Move tracepoint headers into own patch file. Signed-off-by: Hauke Mehrtens --- compat/patches/06-header-changes.patch | 19 -------------- compat/patches/13-trace.patch | 35 +++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/compat/patches/06-header-changes.patch b/compat/patches/06-header-changes.patch index b2e8fd8e465c..ee0be7fbe0a3 100644 --- a/compat/patches/06-header-changes.patch +++ b/compat/patches/06-header-changes.patch @@ -40,25 +40,6 @@ cases. #include #include ---- a/net/mac80211/driver-trace.h 2009-08-18 16:19:34.574352433 -0700 -+++ b/net/mac80211/driver-trace.h 2009-08-18 16:19:35.694367614 -0700 -@@ -1,7 +1,9 @@ - #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) - #define __MAC80211_DRIVER_TRACE - -+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) - #include -+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */ - #include - #include "ieee80211_i.h" - -@@ -669,4 +671,6 @@ TRACE_EVENT(drv_ampdu_action, - #define TRACE_INCLUDE_PATH . - #undef TRACE_INCLUDE_FILE - #define TRACE_INCLUDE_FILE driver-trace -+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) - #include -+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */ --- a/net/mac80211/key.c +++ b/net/mac80211/key.c @@ -21,6 +21,9 @@ diff --git a/compat/patches/13-trace.patch b/compat/patches/13-trace.patch index c43e7234b08c..144cae58ac9e 100644 --- a/compat/patches/13-trace.patch +++ b/compat/patches/13-trace.patch @@ -4,12 +4,41 @@ in or compat headers. [1] http://lxr.linux.no/#linux+v2.6.31/include/trace/define_trace.h ---- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h 2009-10-08 16:21:09.000000000 -0400 -+++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h 2009-10-08 16:23:34.000000000 -0400 +--- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h ++++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h +@@ -1,7 +1,9 @@ + #if !defined(__IWLWIFI_DEVICE_TRACE) || defined(TRACE_HEADER_MULTI_READ) + #define __IWLWIFI_DEVICE_TRACE + ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) + #include ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */ + #include "iwl-dev.h" + + #if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__) @@ -175,4 +175,6 @@ #define TRACE_INCLUDE_PATH . #undef TRACE_INCLUDE_FILE #define TRACE_INCLUDE_FILE iwl-devtrace -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) #include +#endif +--- a/net/mac80211/driver-trace.h 2009-08-18 16:19:34.574352433 -0700 ++++ b/net/mac80211/driver-trace.h 2009-08-18 16:19:35.694367614 -0700 +@@ -1,7 +1,9 @@ + #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) + #define __MAC80211_DRIVER_TRACE + ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) + #include ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */ + #include + #include "ieee80211_i.h" + +@@ -669,4 +671,6 @@ TRACE_EVENT(drv_ampdu_action, + #define TRACE_INCLUDE_PATH . + #undef TRACE_INCLUDE_FILE + #define TRACE_INCLUDE_FILE driver-trace ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) + #include ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */ -- 2.30.2