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 <l...@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-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

Reply via email to