Search Linux Wireless

Re: [PATCH] iwlwifi: fix sparse warning about wrong enum for band parameter

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

 



Hi John,

On Wed, 2010-09-15 at 12:16 -0700, John W. Linville wrote:
> drivers/net/wireless/iwlwifi/iwl-scan.c:386:27: warning: mixing different enum types
> drivers/net/wireless/iwlwifi/iwl-scan.c:386:27:     int enum nl80211_band  versus
> drivers/net/wireless/iwlwifi/iwl-scan.c:386:27:     int enum ieee80211_band
> drivers/net/wireless/iwlwifi/iwl-scan.c:435:57: warning: mixing different enum types
> drivers/net/wireless/iwlwifi/iwl-scan.c:435:57:     int enum ieee80211_band  versus
> drivers/net/wireless/iwlwifi/iwl-scan.c:435:57:     int enum nl80211_band
> drivers/net/wireless/iwlwifi/iwl-scan.c:474:53: warning: mixing different enum types
> drivers/net/wireless/iwlwifi/iwl-scan.c:474:53:     int enum ieee80211_band  versus
> drivers/net/wireless/iwlwifi/iwl-scan.c:474:53:     int enum nl80211_band
> drivers/net/wireless/iwlwifi/iwl-scan.c:588:72: warning: mixing different enum types
> drivers/net/wireless/iwlwifi/iwl-scan.c:588:72:     int enum ieee80211_band  versus
> drivers/net/wireless/iwlwifi/iwl-scan.c:588:72:     int enum nl80211_band
> 
> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>
> ---
>  drivers/net/wireless/iwlwifi/iwl-scan.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
> index 599573f..c54c200 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-scan.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
> @@ -350,7 +350,7 @@ EXPORT_SYMBOL(iwl_init_scan_params);
>  static int __must_check iwl_scan_initiate(struct iwl_priv *priv,
>  					  struct ieee80211_vif *vif,
>  					  bool internal,
> -					  enum nl80211_band band)
> +					  enum ieee80211_band band)
>  {
>  	int ret;
>  
Thank you for fixing this, I also notice this and have the same patch
internally. I will drop my since you already fix it :-)

Wey

--
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