Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on wireless-next/main] [also build test WARNING on wireless/main linus/master v6.0-rc5 next-20220914] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/venkatch-gmail-com/wifi-mac80211-Fix-performance-issue-with-mutex_lock/20220914-191154 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220915/202209150235.Rz3KTMbf-lkp@xxxxxxxxx/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/1d98b164c14462b445f932d0183b56ee716e1c41 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review venkatch-gmail-com/wifi-mac80211-Fix-performance-issue-with-mutex_lock/20220914-191154 git checkout 1d98b164c14462b445f932d0183b56ee716e1c41 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): net/mac80211/cfg.c: In function 'ieee80211_dump_station': >> net/mac80211/cfg.c:858:33: warning: unused variable 'local' [-Wunused-variable] 858 | struct ieee80211_local *local = sdata->local; | ^~~~~ vim +/local +858 net/mac80211/cfg.c 6b62bf326393de Thomas Pedersen 2012-03-05 853 c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 854 static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 855 int idx, u8 *mac, struct station_info *sinfo) c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 856 { 3b53fde8ac40c4 Johannes Berg 2009-11-16 857 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); 66572cfc30a4b7 Victor Goldenshtein 2012-06-21 @858 struct ieee80211_local *local = sdata->local; c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 859 struct sta_info *sta; d0709a65181beb Johannes Berg 2008-02-25 860 int ret = -ENOENT; c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 861 1d98b164c14462 Venkat Chimata 2022-09-14 862 rcu_read_lock(); 3b53fde8ac40c4 Johannes Berg 2009-11-16 863 sta = sta_info_get_by_idx(sdata, idx); d0709a65181beb Johannes Berg 2008-02-25 864 if (sta) { d0709a65181beb Johannes Berg 2008-02-25 865 ret = 0; 17741cdc264e4d Johannes Berg 2008-09-11 866 memcpy(mac, sta->sta.addr, ETH_ALEN); 0fdf1493b41eb6 Johannes Berg 2018-05-18 867 sta_set_sinfo(sta, sinfo, true); d0709a65181beb Johannes Berg 2008-02-25 868 } 1d98b164c14462 Venkat Chimata 2022-09-14 869 rcu_read_unlock(); d0709a65181beb Johannes Berg 2008-02-25 870 d0709a65181beb Johannes Berg 2008-02-25 871 return ret; c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 872 } c5dd9c2bd0b242 Luis Carlos Cobo 2008-02-23 873 -- 0-DAY CI Kernel Test Service https://01.org/lkp