linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
@ 2020-09-07  6:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-09-07  6:15 UTC (permalink / raw)
  To: Sean Wang; +Cc: kbuild-all, linux-kernel, Felix Fietkau, Lorenzo Bianconi

[-- Attachment #1: Type: text/plain, Size: 2818 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f4d51dffc6c01a9e94650d95ce0104964f8ae822
commit: a66cbdd6573db8515735d37793c22605432c346d mt76: mt7615: introduce mt7663s support
date:   7 weeks ago
config: ia64-randconfig-s032-20200907 (attached as .config)
compiler: ia64-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.2-191-g10164920-dirty
        git checkout a66cbdd6573db8515735d37793c22605432c346d
        # 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__' ARCH=ia64 

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/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
   drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:110:62: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:243:58: sparse: sparse: Using plain integer as NULL pointer
   drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:270:58: sparse: sparse: Using plain integer as NULL pointer

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a66cbdd6573db8515735d37793c22605432c346d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a66cbdd6573db8515735d37793c22605432c346d
vim +78 drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c

    65	
    66	int mt7663s_driver_own(struct mt7615_dev *dev)
    67	{
    68		struct sdio_func *func = dev->mt76.sdio.func;
    69		struct mt76_phy *mphy = &dev->mt76.phy;
    70		u32 status;
    71		int ret;
    72	
    73		if (!test_and_clear_bit(MT76_STATE_PM, &mphy->state))
    74			goto out;
    75	
    76		sdio_claim_host(func);
    77	
  > 78		sdio_writel(func, WHLPCR_FW_OWN_REQ_CLR, MCR_WHLPCR, 0);
    79	
    80		ret = readx_poll_timeout(mt7663s_read_pcr, dev, status,
    81					 status & WHLPCR_IS_DRIVER_OWN, 2000, 1000000);
    82		if (ret < 0) {
    83			dev_err(dev->mt76.dev, "Cannot get ownership from device");
    84			set_bit(MT76_STATE_PM, &mphy->state);
    85			sdio_release_host(func);
    86	
    87			return ret;
    88		}
    89	
    90		sdio_release_host(func);
    91	
    92	out:
    93		dev->pm.last_activity = jiffies;
    94	
    95		return 0;
    96	}
    97	

---
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: 25581 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
@ 2020-08-18 15:29 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-18 15:29 UTC (permalink / raw)
  To: Sean Wang; +Cc: kbuild-all, linux-kernel, Felix Fietkau, Lorenzo Bianconi

[-- Attachment #1: Type: text/plain, Size: 2821 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: a66cbdd6573db8515735d37793c22605432c346d mt76: mt7615: introduce mt7663s support
date:   4 weeks ago
config: nios2-randconfig-s031-20200818 (attached as .config)
compiler: nios2-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.2-183-gaa6ede3b-dirty
        git checkout a66cbdd6573db8515735d37793c22605432c346d
        # 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__' ARCH=nios2 

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/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
   drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:110:62: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:243:58: sparse: sparse: Using plain integer as NULL pointer
   drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:270:58: sparse: sparse: Using plain integer as NULL pointer

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a66cbdd6573db8515735d37793c22605432c346d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a66cbdd6573db8515735d37793c22605432c346d
vim +78 drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c

    65	
    66	int mt7663s_driver_own(struct mt7615_dev *dev)
    67	{
    68		struct sdio_func *func = dev->mt76.sdio.func;
    69		struct mt76_phy *mphy = &dev->mt76.phy;
    70		u32 status;
    71		int ret;
    72	
    73		if (!test_and_clear_bit(MT76_STATE_PM, &mphy->state))
    74			goto out;
    75	
    76		sdio_claim_host(func);
    77	
  > 78		sdio_writel(func, WHLPCR_FW_OWN_REQ_CLR, MCR_WHLPCR, 0);
    79	
    80		ret = readx_poll_timeout(mt7663s_read_pcr, dev, status,
    81					 status & WHLPCR_IS_DRIVER_OWN, 2000, 1000000);
    82		if (ret < 0) {
    83			dev_err(dev->mt76.dev, "Cannot get ownership from device");
    84			set_bit(MT76_STATE_PM, &mphy->state);
    85			sdio_release_host(func);
    86	
    87			return ret;
    88		}
    89	
    90		sdio_release_host(func);
    91	
    92	out:
    93		dev->pm.last_activity = jiffies;
    94	
    95		return 0;
    96	}
    97	

---
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: 26852 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-07  6:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07  6:15 drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-18 15:29 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).