* [linux-next:master 10925/14602] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer
@ 2021-04-22 15:56 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-22 15:56 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: kbuild-all, Linux Memory Management List, Felix Fietkau, Sean Wang
[-- Attachment #1: Type: text/plain, Size: 2558 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38083 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 10925/14602] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer
@ 2021-04-22 15:56 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-22 15:56 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2624 bytes --]
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@intel.com>
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38083 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-22 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 15:56 [linux-next:master 10925/14602] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer kernel test robot
2021-04-22 15:56 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.