tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: c457d9676496f5a895509f9c510278beaaffc829 commit: 0c1ce988460765ece1ba8eacd00533eefb6e666a [10925/14602] mt76: mt7921: add wifi reset support config: riscv-randconfig-s031-20210422 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0c1ce988460765ece1ba8eacd00533eefb6e666a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 0c1ce988460765ece1ba8eacd00533eefb6e666a # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) >> drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer vim +1392 drivers/net/wireless/mediatek/mt76/mt7921/mac.c 1361 1362 /* system error recovery */ 1363 void mt7921_mac_reset_work(struct work_struct *work) 1364 { 1365 struct ieee80211_hw *hw; 1366 struct mt7921_dev *dev; 1367 int i; 1368 1369 dev = container_of(work, struct mt7921_dev, reset_work); 1370 hw = mt76_hw(dev); 1371 1372 dev_err(dev->mt76.dev, "chip reset\n"); 1373 ieee80211_stop_queues(hw); 1374 1375 cancel_delayed_work_sync(&dev->mphy.mac_work); 1376 cancel_delayed_work_sync(&dev->pm.ps_work); 1377 cancel_work_sync(&dev->pm.wake_work); 1378 1379 mutex_lock(&dev->mt76.mutex); 1380 for (i = 0; i < 10; i++) { 1381 if (!mt7921_mac_reset(dev)) 1382 break; 1383 } 1384 mutex_unlock(&dev->mt76.mutex); 1385 1386 if (i == 10) 1387 dev_err(dev->mt76.dev, "chip reset failed\n"); 1388 1389 ieee80211_wake_queues(hw); 1390 ieee80211_iterate_active_interfaces(hw, 1391 IEEE80211_IFACE_ITER_RESUME_ALL, > 1392 mt7921_vif_connect_iter, 0); 1393 } 1394 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip