Add 13-trace.patch for skipping a trace header
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 8 Oct 2009 20:36:08 +0000 (16:36 -0400)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 8 Oct 2009 20:36:08 +0000 (16:36 -0400)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/patches/13-trace.patch [new file with mode: 0644]

diff --git a/compat/patches/13-trace.patch b/compat/patches/13-trace.patch
new file mode 100644 (file)
index 0000000..c43e723
--- /dev/null
@@ -0,0 +1,15 @@
+Older kernels do not have trace/define_trace.h [1] and if there
+is something there that we can backport we will define it
+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
+@@ -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))
+ #include <trace/define_trace.h>
++#endif