Search Linux Wireless

Re: [PATCH 3/4] wilc1000: add WPA3 SAE support

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

 



Hi,

I love your patch! Perhaps something to improve:

[auto build test WARNING on wireless-next/main]
[also build test WARNING on wireless/main v5.18-rc6 next-20220513]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Ajay-Kathat-microchip-com/wilc1000-use-correct-sequence-of-RESET-for-chip-Power-UP-Down/20220514-011943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20220514/202205141457.gyZ6XGV0-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/cd10e5eab42df173c299af63e2f50308bbf0f27e
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Ajay-Kathat-microchip-com/wilc1000-use-correct-sequence-of-RESET-for-chip-Power-UP-Down/20220514-011943
        git checkout cd10e5eab42df173c299af63e2f50308bbf0f27e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/clk/mediatek/ drivers/net/wireless/microchip/wilc1000/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/net/wireless/microchip/wilc1000/netdev.c: In function 'wilc_wfi_mgmt_rx':
>> drivers/net/wireless/microchip/wilc1000/netdev.c:845:35: warning: variable 'priv' set but not used [-Wunused-but-set-variable]
     845 |                 struct wilc_priv *priv;
         |                                   ^~~~


vim +/priv +845 drivers/net/wireless/microchip/wilc1000/netdev.c

   837	
   838	void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size, bool is_auth)
   839	{
   840		int srcu_idx;
   841		struct wilc_vif *vif;
   842	
   843		srcu_idx = srcu_read_lock(&wilc->srcu);
   844		list_for_each_entry_rcu(vif, &wilc->vif_list, list) {
 > 845			struct wilc_priv *priv;
   846			struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buff;
   847			u16 type = le16_to_cpup((__le16 *)buff);
   848			u32 type_bit = BIT(type >> 4);
   849			u32 auth_bit = BIT(IEEE80211_STYPE_AUTH >> 4);
   850	
   851			priv = &vif->priv;
   852			if ((vif->mgmt_reg_stypes & auth_bit &&
   853			     ieee80211_is_auth(mgmt->frame_control)) &&
   854			    vif->iftype == WILC_STATION_MODE && is_auth) {
   855				wilc_wfi_mgmt_frame_rx(vif, buff, size);
   856				break;
   857			}
   858	
   859			if (vif->priv.p2p_listen_state &&
   860			    vif->mgmt_reg_stypes & type_bit)
   861				wilc_wfi_p2p_rx(vif, buff, size);
   862	
   863			if (vif->monitor_flag)
   864				wilc_wfi_monitor_rx(wilc->monitor_dev, buff, size);
   865		}
   866		srcu_read_unlock(&wilc->srcu, srcu_idx);
   867	}
   868	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux