compat-wireless: fix building of iwmc3200wifi
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 11 Mar 2010 21:32:45 +0000 (22:32 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 12 Mar 2010 01:15:34 +0000 (17:15 -0800)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/13-trace.patch

index 8c000f3f7c5fcc88eeb3f393677221908ef2de2d..82b2643d5e4ac7e0564b231c4b5504c412a1875f 100644 (file)
@@ -23,6 +23,25 @@ in or compat headers.
 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
  #include <trace/define_trace.h>
 +#endif
+--- a/drivers/net/wireless/iwmc3200wifi/trace.h
++++ b/drivers/net/wireless/iwmc3200wifi/trace.h
+@@ -1,7 +1,9 @@
+ #if !defined(__IWM_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
+ #define __IWM_TRACE_H__
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
+ #include <linux/tracepoint.h>
++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
+ #if !defined(CONFIG_IWM_TRACING)
+ #undef TRACE_EVENT
+@@ -280,4 +282,6 @@ TRACE_EVENT(iwm_rx_packet,
+ #define TRACE_INCLUDE_PATH .
+ #undef TRACE_INCLUDE_FILE
+ #define TRACE_INCLUDE_FILE trace
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
+ #include <trace/define_trace.h>
++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
 --- a/net/mac80211/driver-trace.h
 +++ b/net/mac80211/driver-trace.h
 @@ -1,7 +1,9 @@