Search Linux Wireless

Re: [PATCH v4 8/8] wifi: mac80211: handle ieee80211_radar_detected() for MLO

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

 



Hi Aditya,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 20361712880396e44ce80aaeec2d93d182035651]

url:    https://github.com/intel-lab-lkp/linux/commits/Aditya-Kumar-Singh/Revert-wifi-mac80211-move-radar-detect-work-to-sdata/20240830-141143
base:   20361712880396e44ce80aaeec2d93d182035651
patch link:    https://lore.kernel.org/r/20240830060918.2418701-9-quic_adisi%40quicinc.com
patch subject: [PATCH v4 8/8] wifi: mac80211: handle ieee80211_radar_detected() for MLO
config: x86_64-randconfig-121-20240901 (https://download.01.org/0day-ci/archive/20240901/202409011204.WQXKU89J-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240901/202409011204.WQXKU89J-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409011204.WQXKU89J-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> net/mac80211/util.c:3501:47: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/mac80211/util.c:3501:47: sparse:    struct ieee80211_chanctx_conf *
   net/mac80211/util.c:3501:47: sparse:    struct ieee80211_chanctx_conf [noderef] __rcu *

vim +3501 net/mac80211/util.c

  3469	
  3470	/* Cancel CAC for the interfaces under the specified @local. If @ctx is
  3471	 * also provided, only the interfaces using that ctx will be canceled.
  3472	 */
  3473	void ieee80211_dfs_cac_cancel(struct ieee80211_local *local,
  3474				      struct ieee80211_chanctx *ctx)
  3475	{
  3476		struct ieee80211_sub_if_data *sdata;
  3477		struct cfg80211_chan_def chandef;
  3478		struct ieee80211_link_data *link_data;
  3479		struct ieee80211_bss_conf *link_conf;
  3480		struct ieee80211_chanctx_conf *chanctx_conf;
  3481		unsigned int link_id;
  3482	
  3483		lockdep_assert_wiphy(local->hw.wiphy);
  3484	
  3485		list_for_each_entry(sdata, &local->interfaces, list) {
  3486			for (link_id = 0; link_id < IEEE80211_MLD_MAX_NUM_LINKS;
  3487			     link_id++) {
  3488				link_data = sdata_dereference(sdata->link[link_id],
  3489							      sdata);
  3490				link_conf =
  3491					rcu_dereference(sdata->vif.link_conf[link_id]);
  3492				if (!link_data || !link_conf)
  3493					continue;
  3494	
  3495				chanctx_conf =
  3496					rcu_dereference_protected(link_conf->chanctx_conf,
  3497						  lockdep_is_held(&local->hw.wiphy->mtx));
  3498				if (!chanctx_conf)
  3499					continue;
  3500	
> 3501				if (ctx && &ctx->conf != link_conf->chanctx_conf)
  3502					continue;
  3503	
  3504				wiphy_delayed_work_cancel(local->hw.wiphy,
  3505							  &link_data->dfs_cac_timer_work);
  3506	
  3507				if (!sdata->wdev.links[link_id].cac_started)
  3508					continue;
  3509	
  3510				chandef = link_conf->chanreq.oper;
  3511				ieee80211_link_release_channel(link_data);
  3512				cfg80211_cac_event(sdata->dev,
  3513						   &chandef,
  3514						   NL80211_RADAR_CAC_ABORTED,
  3515						   GFP_KERNEL, link_id);
  3516			}
  3517		}
  3518	}
  3519	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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