* [PATCH 2/2] ath: fix macros coding style issue in regd.c [not found] <regd.c> @ 2010-03-29 23:12 ` Luis de Bethencourt 2010-03-29 23:33 ` Joe Perches 0 siblings, 1 reply; 3+ messages in thread From: Luis de Bethencourt @ 2010-03-29 23:12 UTC (permalink / raw) To: linville, lrodriguez Cc: linux-wireless, netdev, linux-kernel, Luis de Bethencourt This is a patch to the ath/regd.c file that fixes up three warnings about macros found by the checkpatch.pl tool, these said that complex values should be enclosed in parenthesis. Signed-off-by: Luis de Bethencourt <luisbg@ubuntu.com> --- drivers/net/wireless/ath/regd.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c index 04abd1f..971edc4 100644 --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c @@ -45,15 +45,16 @@ #define ATH9K_5GHZ_5725_5850 REG_RULE(5725-10, 5850+10, 40, 0, 30,\ NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS) -#define ATH9K_2GHZ_ALL ATH9K_2GHZ_CH01_11, \ +#define ATH9K_2GHZ_ALL (ATH9K_2GHZ_CH01_11, \ ATH9K_2GHZ_CH12_13, \ - ATH9K_2GHZ_CH14 + ATH9K_2GHZ_CH14) + +#define ATH9K_5GHZ_ALL (ATH9K_5GHZ_5150_5350, \ + ATH9K_5GHZ_5470_5850) -#define ATH9K_5GHZ_ALL ATH9K_5GHZ_5150_5350, \ - ATH9K_5GHZ_5470_5850 /* This one skips what we call "mid band" */ -#define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \ - ATH9K_5GHZ_5725_5850 +#define ATH9K_5GHZ_NO_MIDBAND (ATH9K_5GHZ_5150_5350, \ + ATH9K_5GHZ_5725_5850) /* Can be used for: * 0x60, 0x61, 0x62 */ -- 1.6.3.3 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] ath: fix macros coding style issue in regd.c 2010-03-29 23:12 ` [PATCH 2/2] ath: fix macros coding style issue in regd.c Luis de Bethencourt @ 2010-03-29 23:33 ` Joe Perches [not found] ` <1269905624.4558.56.camel-AkRN8/LKpobuYGix6ZUp1Q@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Joe Perches @ 2010-03-29 23:33 UTC (permalink / raw) To: Luis de Bethencourt Cc: linville, lrodriguez, linux-wireless, netdev, linux-kernel On Tue, 2010-03-30 at 00:12 +0100, Luis de Bethencourt wrote: > This is a patch to the ath/regd.c file that fixes up three warnings > about macros found by the checkpatch.pl tool, these said that > complex values should be enclosed in parenthesis. Hi Luis. Checkpatch isn't always correct. Please make sure to compile test your changes before submitting them. These macros are used as initializers and can not be surrounded by parentheses. .reg_rules = { ATH9K_2GHZ_ALL, cheers, Joe ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1269905624.4558.56.camel-AkRN8/LKpobuYGix6ZUp1Q@public.gmane.org>]
* Re: [PATCH 2/2] ath: fix macros coding style issue in regd.c [not found] ` <1269905624.4558.56.camel-AkRN8/LKpobuYGix6ZUp1Q@public.gmane.org> @ 2010-03-29 23:39 ` Luis de Bethencourt 0 siblings, 0 replies; 3+ messages in thread From: Luis de Bethencourt @ 2010-03-29 23:39 UTC (permalink / raw) To: Joe Perches Cc: linville-2XuSBdqkA4R54TAoqtyWWQ, lrodriguez-DlyHzToyqoxBDgjK7y7TUQ, linux-wireless-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Tue, Mar 30, 2010 at 12:33 AM, Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org> wrote: > On Tue, 2010-03-30 at 00:12 +0100, Luis de Bethencourt wrote: >> This is a patch to the ath/regd.c file that fixes up three warnings >> about macros found by the checkpatch.pl tool, these said that >> complex values should be enclosed in parenthesis. > > Hi Luis. > > Checkpatch isn't always correct. > > Please make sure to compile test your changes > before submitting them. > > These macros are used as initializers and > can not be surrounded by parentheses. > > .reg_rules = { > ATH9K_2GHZ_ALL, > > cheers, Joe > > Hi Joe, Sorry about this. I compiled test the changes but make didn't complain. My bad, will try to avoid this better in the future. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-29 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <regd.c>
2010-03-29 23:12 ` [PATCH 2/2] ath: fix macros coding style issue in regd.c Luis de Bethencourt
2010-03-29 23:33   ` Joe Perches
     [not found]     ` <1269905624.4558.56.camel-AkRN8/LKpobuYGix6ZUp1Q@public.gmane.org>
2010-03-29 23:39       ` Luis de Bethencourt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).