Search Linux Wireless

Re: [PATCH 1/2] [compat-2.6] Update compat.diff for master-2009-07-10

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

 



Hauke Mehrtens írta:
> This is now compiling with kernel at least 2.6.26 to 2.6.30.
> MAC80211_DRIVER_API_TRACER is only working with kernel >= 2.6.30.
> 
> Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
> ---

<snip>

>   
>   /*
> +--- a/net/mac80211/driver-trace.h
> ++++ b/net/mac80211/driver-trace.h
> +@@ -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 <linux/tracepoint.h>
> ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
                                                       ^^ typo?
> + #include <net/mac80211.h>
> + #include "ieee80211_i.h"
> + 
> +@@ -645,4 +647,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 <trace/define_trace.h>
> ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
>  --- a/net/mac80211/iface.c	2009-07-08 15:46:16.452255410 -0700
>  +++ b/net/mac80211/iface.c	2009-07-08 15:46:06.060257895 -0700
>  @@ -643,6 +643,7 @@

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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux