From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 10925/14602] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer
Date: Thu, 22 Apr 2021 23:56:27 +0800 [thread overview]
Message-ID: <202104222323.Y8ODSGFf-lkp@intel.com> (raw)
[-- 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 --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Felix Fietkau <nbd@nbd.name>, Sean Wang <sean.wang@mediatek.com>
Subject: [linux-next:master 10925/14602] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1392:70: sparse: sparse: Using plain integer as NULL pointer
Date: Thu, 22 Apr 2021 23:56:27 +0800 [thread overview]
Message-ID: <202104222323.Y8ODSGFf-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-04-22 15:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 15:56 kernel test robot [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202104222323.Y8ODSGFf-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.