lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 17 Sep 2020 15:30:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sunil Goutham <sgoutham@...vell.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Tomasz Duszynski <tduszynski@...vell.com>,
        Subbaraya Sundeep <sbhatta@...vell.com>,
        Christina Jacob <cjacob@...vell.com>
Subject: drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:415:35: sparse:
 got void

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fc4f28bb3daf3265d6bc5f73b497306985bb23ab
commit: d424b6c024157fe04e6530757b8b4a0e48bbe389 octeontx2-pf: Enable SRIOV and added VF mbox handling
date:   6 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 6 months ago
config: parisc-randconfig-s032-20200914 (attached as .config)
compiler: hppa64-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 d424b6c024157fe04e6530757b8b4a0e48bbe389
        # 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=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c: note: in included file (through arch/parisc/include/uapi/asm/unistd.h, arch/parisc/include/asm/unistd.h, include/uapi/linux/unistd.h, ...):
   ./arch/parisc/include/generated/uapi/asm/unistd_64.h:362:41: sparse: sparse: no newline at end of file
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:365:40: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:415:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void *hwbase @@
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:415:35: sparse:     expected void const volatile [noderef] <asn:2> *addr
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:415:35: sparse:     got void *hwbase
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:882:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long long [usertype] *ptr @@     got void [noderef] <asn:2> * @@
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:882:21: sparse:     expected unsigned long long [usertype] *ptr
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:882:21: sparse:     got void [noderef] <asn:2> *
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:907:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long long [usertype] *ptr @@     got void [noderef] <asn:2> * @@
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:907:21: sparse:     expected unsigned long long [usertype] *ptr
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:907:21: sparse:     got void [noderef] <asn:2> *

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d424b6c024157fe04e6530757b8b4a0e48bbe389
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d424b6c024157fe04e6530757b8b4a0e48bbe389
vim +415 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

d424b6c024157fe Sunil Goutham 2020-03-21  400  
d424b6c024157fe Sunil Goutham 2020-03-21  401  static void otx2_pfvf_mbox_destroy(struct otx2_nic *pf)
d424b6c024157fe Sunil Goutham 2020-03-21  402  {
d424b6c024157fe Sunil Goutham 2020-03-21  403  	struct mbox *mbox = &pf->mbox_pfvf[0];
d424b6c024157fe Sunil Goutham 2020-03-21  404  
d424b6c024157fe Sunil Goutham 2020-03-21  405  	if (!mbox)
d424b6c024157fe Sunil Goutham 2020-03-21  406  		return;
d424b6c024157fe Sunil Goutham 2020-03-21  407  
d424b6c024157fe Sunil Goutham 2020-03-21  408  	if (pf->mbox_pfvf_wq) {
d424b6c024157fe Sunil Goutham 2020-03-21  409  		flush_workqueue(pf->mbox_pfvf_wq);
d424b6c024157fe Sunil Goutham 2020-03-21  410  		destroy_workqueue(pf->mbox_pfvf_wq);
d424b6c024157fe Sunil Goutham 2020-03-21  411  		pf->mbox_pfvf_wq = NULL;
d424b6c024157fe Sunil Goutham 2020-03-21  412  	}
d424b6c024157fe Sunil Goutham 2020-03-21  413  
d424b6c024157fe Sunil Goutham 2020-03-21  414  	if (mbox->mbox.hwbase)
d424b6c024157fe Sunil Goutham 2020-03-21 @415  		iounmap(mbox->mbox.hwbase);
d424b6c024157fe Sunil Goutham 2020-03-21  416  
d424b6c024157fe Sunil Goutham 2020-03-21  417  	otx2_mbox_destroy(&mbox->mbox);
d424b6c024157fe Sunil Goutham 2020-03-21  418  }
d424b6c024157fe Sunil Goutham 2020-03-21  419  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33278 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ