mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-07-05 21:20 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-05 21:20 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bb5a93aaf25261321db0c499cde7da6ee9d8b164
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   2 weeks ago
config: microblaze-randconfig-s031-20200705 (attached as .config)
compiler: microblaze-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-3-gfa153962-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # 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=microblaze 

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 >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
>> drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void * @@
>> drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse:     expected void [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse:     got void *
>> drivers/scsi/pcmcia/nsp_io.h:231:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned long *ptr @@
>> drivers/scsi/pcmcia/nsp_io.h:231:30: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_io.h:231:30: sparse:     got unsigned long *ptr
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
>> drivers/scsi/pcmcia/nsp_io.h:257:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned long *ptr @@
>> drivers/scsi/pcmcia/nsp_io.h:257:30: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_io.h:257:30: sparse:     got unsigned long *ptr
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
--
   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
   drivers/video/fbdev/xilinxfb.c:285:34: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *fb_virt @@     got void [noderef] __iomem * @@
   drivers/video/fbdev/xilinxfb.c:285:34: sparse:     expected void *fb_virt
   drivers/video/fbdev/xilinxfb.c:285:34: sparse:     got void [noderef] __iomem *
>> drivers/video/fbdev/xilinxfb.c:369:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *fb_virt @@
>> drivers/video/fbdev/xilinxfb.c:369:32: sparse:     expected void [noderef] __iomem *addr
   drivers/video/fbdev/xilinxfb.c:369:32: sparse:     got void *fb_virt
   drivers/video/fbdev/xilinxfb.c:393:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *fb_virt @@
   drivers/video/fbdev/xilinxfb.c:393:32: sparse:     expected void [noderef] __iomem *addr
   drivers/video/fbdev/xilinxfb.c:393:32: sparse:     got void *fb_virt
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32

vim +1669 drivers/scsi/pcmcia/nsp_cs.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  1647  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1648  
fba395eee7d3f3 Dominik Brodowski 2006-03-31  1649  static void nsp_cs_release(struct pcmcia_device *link)
^1da177e4c3f41 Linus Torvalds    2005-04-16  1650  {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1651  	scsi_info_t *info = link->priv;
^1da177e4c3f41 Linus Torvalds    2005-04-16  1652  	nsp_hw_data *data = NULL;
^1da177e4c3f41 Linus Torvalds    2005-04-16  1653  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1654  	if (info->host == NULL) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1655  		nsp_msg(KERN_DEBUG, "unexpected card release call.");
^1da177e4c3f41 Linus Torvalds    2005-04-16  1656  	} else {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1657  		data = (nsp_hw_data *)info->host->hostdata;
^1da177e4c3f41 Linus Torvalds    2005-04-16  1658  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  1659  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1660  	nsp_dbg(NSP_DEBUG_INIT, "link=0x%p", link);
^1da177e4c3f41 Linus Torvalds    2005-04-16  1661  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1662  	/* Unlink the device chain */
^1da177e4c3f41 Linus Torvalds    2005-04-16  1663  	if (info->host != NULL) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1664  		scsi_remove_host(info->host);
^1da177e4c3f41 Linus Torvalds    2005-04-16  1665  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  1666  
cdb138080b7814 Dominik Brodowski 2010-07-28  1667  	if (resource_size(link->resource[2])) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1668  		if (data != NULL) {
^1da177e4c3f41 Linus Torvalds    2005-04-16 @1669  			iounmap((void *)(data->MmioAddress));
^1da177e4c3f41 Linus Torvalds    2005-04-16  1670  		}
^1da177e4c3f41 Linus Torvalds    2005-04-16  1671  	}
fba395eee7d3f3 Dominik Brodowski 2006-03-31  1672  	pcmcia_disable_device(link);
5f2a71fcb79956 Dominik Brodowski 2006-01-15  1673  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1674  	if (info->host != NULL) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1675  		scsi_host_put(info->host);
^1da177e4c3f41 Linus Torvalds    2005-04-16  1676  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  1677  } /* nsp_cs_release */
^1da177e4c3f41 Linus Torvalds    2005-04-16  1678  

:::::: The code at line 1669 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-08-03  6:42 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-03  6:42 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bcf876870b95592b52519ed4aafcf9d95999bc9c
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   7 weeks ago
config: parisc-randconfig-s031-20200803 (attached as .config)
compiler: hppa-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-117-g8c7aee71-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # 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@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
>> drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse:     got void *
   drivers/scsi/pcmcia/nsp_cs.c: note: in included file:
   drivers/scsi/pcmcia/nsp_io.h:231:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned long *ptr @@
   drivers/scsi/pcmcia/nsp_io.h:231:30: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_io.h:231:30: sparse:     got unsigned long *ptr
   drivers/scsi/pcmcia/nsp_io.h:257:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned long *ptr @@
   drivers/scsi/pcmcia/nsp_io.h:257:30: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/scsi/pcmcia/nsp_io.h:257:30: sparse:     got unsigned long *ptr
--
   drivers/tty/synclinkmp.c:3562:27: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char *[usertype] memory_base @@     got void [noderef] __iomem * @@
   drivers/tty/synclinkmp.c:3562:27: sparse:     expected unsigned char *[usertype] memory_base
   drivers/tty/synclinkmp.c:3562:27: sparse:     got void [noderef] __iomem *
   drivers/tty/synclinkmp.c:3571:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char *[usertype] lcr_base @@     got void [noderef] __iomem * @@
   drivers/tty/synclinkmp.c:3571:24: sparse:     expected unsigned char *[usertype] lcr_base
   drivers/tty/synclinkmp.c:3571:24: sparse:     got void [noderef] __iomem *
   drivers/tty/synclinkmp.c:3580:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char *[usertype] sca_base @@     got void [noderef] __iomem * @@
   drivers/tty/synclinkmp.c:3580:24: sparse:     expected unsigned char *[usertype] sca_base
   drivers/tty/synclinkmp.c:3580:24: sparse:     got void [noderef] __iomem *
   drivers/tty/synclinkmp.c:3589:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char *[usertype] statctrl_base @@     got void [noderef] __iomem * @@
   drivers/tty/synclinkmp.c:3589:29: sparse:     expected unsigned char *[usertype] statctrl_base
   drivers/tty/synclinkmp.c:3589:29: sparse:     got void [noderef] __iomem *
>> drivers/tty/synclinkmp.c:3642:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned char *[usertype] memory_base @@
>> drivers/tty/synclinkmp.c:3642:29: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/tty/synclinkmp.c:3642:29: sparse:     got unsigned char *[usertype] memory_base
>> drivers/tty/synclinkmp.c:3647:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/synclinkmp.c:3647:40: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/tty/synclinkmp.c:3647:40: sparse:     got unsigned char *
   drivers/tty/synclinkmp.c:3652:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/synclinkmp.c:3652:45: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/tty/synclinkmp.c:3652:45: sparse:     got unsigned char *
   drivers/tty/synclinkmp.c:3657:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/synclinkmp.c:3657:40: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/tty/synclinkmp.c:3657:40: sparse:     got unsigned char *
   drivers/tty/synclinkmp.c:5383:15: sparse: sparse: memset with byte count of 262144

vim +1669 drivers/scsi/pcmcia/nsp_cs.c

^1da177e4c3f415 Linus Torvalds    2005-04-16  1647  
^1da177e4c3f415 Linus Torvalds    2005-04-16  1648  
fba395eee7d3f34 Dominik Brodowski 2006-03-31  1649  static void nsp_cs_release(struct pcmcia_device *link)
^1da177e4c3f415 Linus Torvalds    2005-04-16  1650  {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1651  	scsi_info_t *info = link->priv;
^1da177e4c3f415 Linus Torvalds    2005-04-16  1652  	nsp_hw_data *data = NULL;
^1da177e4c3f415 Linus Torvalds    2005-04-16  1653  
^1da177e4c3f415 Linus Torvalds    2005-04-16  1654  	if (info->host == NULL) {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1655  		nsp_msg(KERN_DEBUG, "unexpected card release call.");
^1da177e4c3f415 Linus Torvalds    2005-04-16  1656  	} else {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1657  		data = (nsp_hw_data *)info->host->hostdata;
^1da177e4c3f415 Linus Torvalds    2005-04-16  1658  	}
^1da177e4c3f415 Linus Torvalds    2005-04-16  1659  
^1da177e4c3f415 Linus Torvalds    2005-04-16  1660  	nsp_dbg(NSP_DEBUG_INIT, "link=0x%p", link);
^1da177e4c3f415 Linus Torvalds    2005-04-16  1661  
^1da177e4c3f415 Linus Torvalds    2005-04-16  1662  	/* Unlink the device chain */
^1da177e4c3f415 Linus Torvalds    2005-04-16  1663  	if (info->host != NULL) {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1664  		scsi_remove_host(info->host);
^1da177e4c3f415 Linus Torvalds    2005-04-16  1665  	}
^1da177e4c3f415 Linus Torvalds    2005-04-16  1666  
cdb138080b78146 Dominik Brodowski 2010-07-28  1667  	if (resource_size(link->resource[2])) {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1668  		if (data != NULL) {
^1da177e4c3f415 Linus Torvalds    2005-04-16 @1669  			iounmap((void *)(data->MmioAddress));
^1da177e4c3f415 Linus Torvalds    2005-04-16  1670  		}
^1da177e4c3f415 Linus Torvalds    2005-04-16  1671  	}
fba395eee7d3f34 Dominik Brodowski 2006-03-31  1672  	pcmcia_disable_device(link);
5f2a71fcb799563 Dominik Brodowski 2006-01-15  1673  
^1da177e4c3f415 Linus Torvalds    2005-04-16  1674  	if (info->host != NULL) {
^1da177e4c3f415 Linus Torvalds    2005-04-16  1675  		scsi_host_put(info->host);
^1da177e4c3f415 Linus Torvalds    2005-04-16  1676  	}
^1da177e4c3f415 Linus Torvalds    2005-04-16  1677  } /* nsp_cs_release */
^1da177e4c3f415 Linus Torvalds    2005-04-16  1678  

:::::: The code at line 1669 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

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

end of thread, other threads:[~2020-08-03  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05 21:20 drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2020-08-03  6:42 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

all inboxes | Powered by JetHome®