Search Linux Wireless

Re: [RFC v4 5/8] mac80211: generate hw flags from include file

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

 



On Thu, 12 Nov 2015 09:47:50 +0100
Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:


> +#define __DEFINE_HWFLAG(_flg, _on, _off)				\
> +	HWFLAGS_DEFSTATE_##_flg = -1 + ((_on) ^ (_off)) * (1 + _on),
> +#define DEFINE_HWFLAG(_flg)						\
> +	__DEFINE_HWFLAG(_flg,						\
> +			IS_ENABLED(CONFIG_MAC80211_HW_##_flg##_ON),	\
> +			IS_ENABLED(CONFIG_MAC80211_HW_##_flg##_OFF))
> +#include <net/mac80211-hwflags.h>
> +#undef DEFINE_HWFLAG

You learned to use the MACRO force well, young Skywalker.

-- Steve

>  };
>  
>  bool _____optimisation_missing(void);

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux