Skip to contentSkip to conversation

net/mac80211/driver-ops.c:124:19: sparse: sparse: incompatible types in comparison expression (different address spaces):

PATCH kernel test robot 1 participant 1 message Feb 12, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c674aa7c289e51659e40dda0f954886ef7f80042
commit: 646262c71aca87bb66945933abe4e620796d6c5a [2628/3226] wifi: mac80211: remove debugfs dir for virtual monitor
config: m68k-randconfig-r133-20250212 (https://download.01.org/0day-ci/archive/20250213/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250213/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> net/mac80211/driver-ops.c:124:19: sparse: sparse: incompatible types in comparison expression (different address spaces):

net/mac80211/driver-ops.c:124:19: sparse: struct ieee80211_sub_if_data *
net/mac80211/driver-ops.c:124:19: sparse: struct ieee80211_sub_if_data [noderef] __rcu *

vim +124 net/mac80211/driver-ops.c

107
108 void drv_remove_interface(struct ieee80211_local *local,
109 struct ieee80211_sub_if_data *sdata)
110 {
111 might_sleep();
112 lockdep_assert_wiphy(local->hw.wiphy);
113
114 if (!check_sdata_in_driver(sdata))
115 return;
116
117 sdata->flags &= ~IEEE80211_SDATA_IN_DRIVER;
118
119 /*
120 * Remove driver debugfs entries.
121 * The virtual monitor interface doesn't get a debugfs
122 * entry, so it's exempt here.
123 */

 > 124		if (sdata != local->monitor_sdata)

125 ieee80211_debugfs_recreate_netdev(sdata,
126 sdata->vif.valid_links);
127
128 trace_drv_remove_interface(local, sdata);
129 local->ops->remove_interface(&local->hw, &sdata->vif);
130 trace_drv_return_void(local);
131 }
132

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