drivers/scsi/mvumi.c:407:40: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-12-29 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   dea8dcf2a9fa8cc540136a6cd885c3beece16ec3
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() 
iomem argument (as in generic implementation)
date:   5 months ago
config: alpha-randconfig-s031-20201223 (attached as .config)
compiler: alpha-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-184-g1b896707-dirty
# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f28ca6bd8211214faf717677bbffe375c2a6072
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# 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=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


"sparse warnings: (new ones prefixed by >>)"
   drivers/scsi/mvumi.c:81:52: sparse: sparse: incorrect type in argument 2 
(different address spaces) @@ expected void [noderef] __iomem * @@ got 
void * @@
   drivers/scsi/mvumi.c:81:52: sparse: expected void [noderef] __iomem *
   drivers/scsi/mvumi.c:81:52: sparse: got void *
   drivers/scsi/mvumi.c:90:39: sparse: sparse: incorrect type in assignment 
(different address spaces) @@ expected void * @@ got void [noderef] 
__iomem * @@
   drivers/scsi/mvumi.c:90:39: sparse: expected void *
   drivers/scsi/mvumi.c:90:39: sparse: got void [noderef] __iomem *
   drivers/scsi/mvumi.c:210:34: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_l @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:210:34: sparse: expected unsigned int [usertype] 
baseaddr_l
   drivers/scsi/mvumi.c:210:34: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:211:34: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_h @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:211:34: sparse: expected unsigned int [usertype] 
baseaddr_h
   drivers/scsi/mvumi.c:211:34: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:213:17: sparse: sparse: invalid assignment: |=
   drivers/scsi/mvumi.c:213:17: sparse:left side has type unsigned int
   drivers/scsi/mvumi.c:213:17: sparse:right side has type restricted __le32
   drivers/scsi/mvumi.c:213:17: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] size @@ got 
restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:213:17: sparse: expected unsigned int [usertype] 
size
   drivers/scsi/mvumi.c:213:17: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:242:26: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_l @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:242:26: sparse: expected unsigned int [usertype] 
baseaddr_l
   drivers/scsi/mvumi.c:242:26: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:243:26: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_h @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:243:26: sparse: expected unsigned int [usertype] 
baseaddr_h
   drivers/scsi/mvumi.c:243:26: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:245:9: sparse: sparse: invalid assignment: |=
   drivers/scsi/mvumi.c:245:9: sparse:left side has type unsigned int
   drivers/scsi/mvumi.c:245:9: sparse:right side has type restricted __le32
   drivers/scsi/mvumi.c:245:9: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] size @@ got 
restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:245:9: sparse: expected unsigned int [usertype] size
   drivers/scsi/mvumi.c:245:9: sparse: got restricted __le32 [usertype]
>> drivers/scsi/mvumi.c:407:40: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected void const [noderef] __iomem 
>> *addr @@ got void *inb_read_pointer @@
   drivers/scsi/mvumi.c:407:40: sparse: expected void const [noderef] 
__iomem *addr
   drivers/scsi/mvumi.c:407:40: sparse: got void *inb_read_pointer
>> drivers/scsi/mvumi.c:429:30: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected voi

drivers/scsi/mvumi.c:407:40: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-10-30 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   07e0887302450a62f51dba72df6afb5fabb23d1c
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() 
iomem argument (as in generic implementation)
date:   3 months ago
config: alpha-randconfig-s031-20201029 (attached as .config)
compiler: alpha-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-56-gc09e8239-dirty
# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f28ca6bd8211214faf717677bbffe375c2a6072
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# 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=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


"sparse warnings: (new ones prefixed by >>)"
   drivers/scsi/mvumi.c:81:52: sparse: sparse: incorrect type in argument 2 
(different address spaces) @@ expected void [noderef] __iomem * @@ got 
void * @@
   drivers/scsi/mvumi.c:81:52: sparse: expected void [noderef] __iomem *
   drivers/scsi/mvumi.c:81:52: sparse: got void *
   drivers/scsi/mvumi.c:90:39: sparse: sparse: incorrect type in assignment 
(different address spaces) @@ expected void * @@ got void [noderef] 
__iomem * @@
   drivers/scsi/mvumi.c:90:39: sparse: expected void *
   drivers/scsi/mvumi.c:90:39: sparse: got void [noderef] __iomem *
   drivers/scsi/mvumi.c:210:34: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_l @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:210:34: sparse: expected unsigned int [usertype] 
baseaddr_l
   drivers/scsi/mvumi.c:210:34: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:211:34: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_h @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:211:34: sparse: expected unsigned int [usertype] 
baseaddr_h
   drivers/scsi/mvumi.c:211:34: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:213:17: sparse: sparse: invalid assignment: |=
   drivers/scsi/mvumi.c:213:17: sparse:left side has type unsigned int
   drivers/scsi/mvumi.c:213:17: sparse:right side has type restricted __le32
   drivers/scsi/mvumi.c:213:17: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] size @@ got 
restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:213:17: sparse: expected unsigned int [usertype] 
size
   drivers/scsi/mvumi.c:213:17: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:242:26: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_l @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:242:26: sparse: expected unsigned int [usertype] 
baseaddr_l
   drivers/scsi/mvumi.c:242:26: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:243:26: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] baseaddr_h @@
 got restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:243:26: sparse: expected unsigned int [usertype] 
baseaddr_h
   drivers/scsi/mvumi.c:243:26: sparse: got restricted __le32 [usertype]
   drivers/scsi/mvumi.c:245:9: sparse: sparse: invalid assignment: |=
   drivers/scsi/mvumi.c:245:9: sparse:left side has type unsigned int
   drivers/scsi/mvumi.c:245:9: sparse:right side has type restricted __le32
   drivers/scsi/mvumi.c:245:9: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] size @@ got 
restricted __le32 [usertype] @@
   drivers/scsi/mvumi.c:245:9: sparse: expected unsigned int [usertype] size
   drivers/scsi/mvumi.c:245:9: sparse: got restricted __le32 [usertype]
>> drivers/scsi/mvumi.c:407:40: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected void const [noderef] __iomem 
>> *addr @@ got void *inb_read_pointer @@
>> drivers/scsi/mvumi.c:407:40: sparse: expected void const [noderef] 
>> __iomem *addr
   drivers/scsi/mvumi.c:407:40: sparse: got void *inb_read_pointer
>> drivers/scsi/mvumi.c:429:30: sparse: sparse: incorrect type in argument 1 
>> (different address spac