drivers/scsi/3w-sas.c:1245:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

From: kernel test robot
Date: Mon Aug 10 2020 - 03:47:26 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 8 weeks ago
config: mips-randconfig-s032-20200810 (attached as .config)
compiler: mipsel-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-118-ge1578773-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=mips

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


sparse warnings: (new ones prefixed by >>)

drivers/scsi/3w-sas.c:238:15: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:325:50: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] request_id__lunl @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:325:50: sparse: expected unsigned short [usertype] request_id__lunl
drivers/scsi/3w-sas.c:325:50: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:328:50: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] request_id__lunl @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:328:50: sparse: expected unsigned short [usertype] request_id__lunl
drivers/scsi/3w-sas.c:328:50: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:343:70: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:343:70: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:344:69: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:344:69: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:346:59: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] sgl_entries__lunh @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:346:59: sparse: expected unsigned short [usertype] sgl_entries__lunh
drivers/scsi/3w-sas.c:346:59: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:351:62: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:351:62: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:352:61: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:352:61: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:354:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] sgl_entries__lunh @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:354:51: sparse: expected unsigned short [usertype] sgl_entries__lunh
drivers/scsi/3w-sas.c:354:51: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:423:61: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:423:61: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:424:60: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:424:60: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:426:54: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] parameter_count @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:426:54: sparse: expected unsigned short [usertype] parameter_count
drivers/scsi/3w-sas.c:426:54: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:431:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] table_id @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:431:25: sparse: expected unsigned short [usertype] table_id
drivers/scsi/3w-sas.c:431:25: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:432:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] parameter_id @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:432:29: sparse: expected unsigned short [usertype] parameter_id
drivers/scsi/3w-sas.c:432:29: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:433:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] parameter_size_bytes @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:433:37: sparse: expected unsigned short [usertype] parameter_size_bytes
drivers/scsi/3w-sas.c:433:37: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:439:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [usertype] schedulertime @@ got restricted __le32 [usertype] @@
drivers/scsi/3w-sas.c:439:23: sparse: expected unsigned int [addressable] [usertype] schedulertime
drivers/scsi/3w-sas.c:439:23: sparse: got restricted __le32 [usertype]
drivers/scsi/3w-sas.c:477:15: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:604:23: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:691:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] request_id__lunl @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:691:46: sparse: expected unsigned short [usertype] request_id__lunl
drivers/scsi/3w-sas.c:691:46: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:694:58: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:694:58: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:695:57: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:695:57: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:697:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] sgl_entries__lunh @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:697:47: sparse: expected unsigned short [usertype] sgl_entries__lunh
drivers/scsi/3w-sas.c:697:47: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:706:40: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:706:40: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:707:39: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:707:39: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:875:17: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:942:50: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] block_count @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:942:50: sparse: expected unsigned short [usertype] block_count
drivers/scsi/3w-sas.c:942:50: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:947:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] table_id @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:947:25: sparse: expected unsigned short [usertype] table_id
drivers/scsi/3w-sas.c:947:25: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:948:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] parameter_id @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:948:29: sparse: expected unsigned short [usertype] parameter_id
drivers/scsi/3w-sas.c:948:29: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:949:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] parameter_size_bytes @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:949:37: sparse: expected unsigned short [usertype] parameter_size_bytes
drivers/scsi/3w-sas.c:949:37: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:951:61: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:951:61: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:952:60: sparse: sparse: restricted __le64 degrades to integer
drivers/scsi/3w-sas.c:952:60: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/3w-sas.c:993:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] message_credits @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:993:41: sparse: expected unsigned short [usertype] message_credits
drivers/scsi/3w-sas.c:993:41: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:999:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] features @@ got restricted __le32 [usertype] @@
drivers/scsi/3w-sas.c:999:34: sparse: expected unsigned int [usertype] features
drivers/scsi/3w-sas.c:999:34: sparse: got restricted __le32 [usertype]
drivers/scsi/3w-sas.c:1003:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fw_srl @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:1003:40: sparse: expected unsigned short [usertype] fw_srl
drivers/scsi/3w-sas.c:1003:40: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:1004:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fw_arch_id @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:1004:44: sparse: expected unsigned short [usertype] fw_arch_id
drivers/scsi/3w-sas.c:1004:44: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:1005:43: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fw_branch @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:1005:43: sparse: expected unsigned short [usertype] fw_branch
drivers/scsi/3w-sas.c:1005:43: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:1006:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fw_build @@ got restricted __le16 [usertype] @@
drivers/scsi/3w-sas.c:1006:42: sparse: expected unsigned short [usertype] fw_build
drivers/scsi/3w-sas.c:1006:42: sparse: got restricted __le16 [usertype]
drivers/scsi/3w-sas.c:1018:43: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:1019:47: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:1020:46: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:1021:45: sparse: sparse: cast to restricted __le16
drivers/scsi/3w-sas.c:1022:48: sparse: sparse: cast to restricted __le32
drivers/scsi/3w-sas.c:1169:54: sparse: sparse: cast to restricted __le16
>> drivers/scsi/3w-sas.c:1245:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void *reg @@
>> drivers/scsi/3w-sas.c:1245:27: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/3w-sas.c:1245:27: sparse: got void *reg
drivers/scsi/3w-sas.c:1249:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void *reg @@
drivers/scsi/3w-sas.c:1249:35: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/3w-sas.c:1249:35: sparse: got void *reg
drivers/scsi/3w-sas.c:1277:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *reg @@ got unsigned char [noderef] __iomem * @@
drivers/scsi/3w-sas.c:1277:55: sparse: expected void *reg
drivers/scsi/3w-sas.c:1277:55: sparse: got unsigned char [noderef] __iomem *
drivers/scsi/3w-sas.c:1282:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *reg @@ got unsigned char [noderef] __iomem * @@
drivers/scsi/3w-sas.c:1282:55: sparse: expected void *reg
drivers/scsi/3w-sas.c:1282:55: sparse: got unsigned char [noderef] __iomem *
drivers/scsi/3w-sas.c:1652:28: sparse: sparse: cast to restricted __le32
--
drivers/scsi/hptiop.c:150:53: sparse: sparse: restricted __le32 degrades to integer
>> drivers/scsi/hptiop.c:172:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
>> drivers/scsi/hptiop.c:172:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:172:35: sparse: got restricted __le32 *
>> drivers/scsi/hptiop.c:208:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
>> drivers/scsi/hptiop.c:208:34: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:208:34: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:209:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:209:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:209:35: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:244:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] result @@ got int @@
drivers/scsi/hptiop.c:244:44: sparse: expected restricted __le32 [usertype] result
drivers/scsi/hptiop.c:244:44: sparse: got int
drivers/scsi/hptiop.c:289:35: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:276:32: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:277:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] cur_rptr @@ got restricted __le32 [usertype] outlist_rptr @@
drivers/scsi/hptiop.c:277:34: sparse: expected unsigned int [usertype] cur_rptr
drivers/scsi/hptiop.c:277:34: sparse: got restricted __le32 [usertype] outlist_rptr
drivers/scsi/hptiop.c:283:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] _tag @@ got restricted __le32 [usertype] val @@
drivers/scsi/hptiop.c:283:38: sparse: expected unsigned int [usertype] _tag
drivers/scsi/hptiop.c:283:38: sparse: got restricted __le32 [usertype] val
drivers/scsi/hptiop.c:288:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] outlist_rptr @@ got unsigned int [assigned] [usertype] cur_rptr @@
drivers/scsi/hptiop.c:288:52: sparse: expected restricted __le32 [usertype] outlist_rptr
drivers/scsi/hptiop.c:288:52: sparse: got unsigned int [assigned] [usertype] cur_rptr
drivers/scsi/hptiop.c:369:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:369:52: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:369:52: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:370:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:370:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:370:25: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:453:64: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct hpt_iop_request_get_config *info @@ got struct hpt_iop_request_get_config [noderef] __iomem *config @@
drivers/scsi/hptiop.c:453:64: sparse: expected struct hpt_iop_request_get_config *info
drivers/scsi/hptiop.c:453:64: sparse: got struct hpt_iop_request_get_config [noderef] __iomem *config
drivers/scsi/hptiop.c:455:25: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:558:27: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:558:27: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:558:27: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:637:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hpt_iopmv_regs *regs @@ got void [noderef] __iomem * @@
drivers/scsi/hptiop.c:637:24: sparse: expected struct hpt_iopmv_regs *regs
drivers/scsi/hptiop.c:637:24: sparse: got void [noderef] __iomem *
drivers/scsi/hptiop.c:643:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got struct hpt_iopmv_regs *regs @@
drivers/scsi/hptiop.c:643:34: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:643:34: sparse: got struct hpt_iopmv_regs *regs
drivers/scsi/hptiop.c:667:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got struct hpt_iopmv_regs *regs @@
drivers/scsi/hptiop.c:667:26: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:667:26: sparse: got struct hpt_iopmv_regs *regs
drivers/scsi/hptiop.c:934:27: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:939:34: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:940:30: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:944:43: sparse: sparse: invalid assignment: &=
drivers/scsi/hptiop.c:944:43: sparse: left side has type restricted __le32
drivers/scsi/hptiop.c:944:43: sparse: right side has type int
drivers/scsi/hptiop.c:945:43: sparse: sparse: invalid assignment: ^=
drivers/scsi/hptiop.c:945:43: sparse: left side has type restricted __le32
drivers/scsi/hptiop.c:945:43: sparse: right side has type int
drivers/scsi/hptiop.c:950:57: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:950:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] intrfc_len @@ got unsigned int @@
drivers/scsi/hptiop.c:950:48: sparse: expected restricted __le32 [usertype] intrfc_len
drivers/scsi/hptiop.c:950:48: sparse: got unsigned int
drivers/scsi/hptiop.c:951:29: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] inlist_wptr @@
drivers/scsi/hptiop.c:951:29: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:951:29: sparse: got restricted __le32 [usertype] inlist_wptr
drivers/scsi/hptiop.c:976:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:976:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:976:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:978:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:978:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:978:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:981:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:981:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:981:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:983:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:983:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:983:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:986:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:986:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:986:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:988:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/scsi/hptiop.c:988:16: sparse: expected unsigned int [usertype] val
drivers/scsi/hptiop.c:988:16: sparse: got restricted __le32 [usertype]
drivers/scsi/hptiop.c:991:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] inlist_wptr @@ got unsigned int @@
drivers/scsi/hptiop.c:991:35: sparse: expected restricted __le32 [usertype] inlist_wptr
drivers/scsi/hptiop.c:991:35: sparse: got unsigned int
drivers/scsi/hptiop.c:992:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int @@
drivers/scsi/hptiop.c:992:37: sparse: expected restricted __le32 [usertype]
drivers/scsi/hptiop.c:992:37: sparse: got unsigned int
drivers/scsi/hptiop.c:993:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] outlist_rptr @@ got unsigned int @@
drivers/scsi/hptiop.c:993:36: sparse: expected restricted __le32 [usertype] outlist_rptr
drivers/scsi/hptiop.c:993:36: sparse: got unsigned int
drivers/scsi/hptiop.c:1536:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:1536:29: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:1536:29: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:1537:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:1537:25: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/hptiop.c:1537:25: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:150:51: sparse: sparse: dereference of noderef expression
drivers/scsi/hptiop.c:150:51: sparse: sparse: dereference of noderef expression
--
drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32
drivers/scsi/aacraid/src.c:494:54: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/aacraid/src.c:515:57: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/scsi/aacraid/src.c:522:57: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/scsi/aacraid/src.c:530:49: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/scsi/aacraid/src.c:533:55: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/scsi/aacraid/src.c:772:23: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/scsi/aacraid/src.c:772:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got char * @@
>> drivers/scsi/aacraid/src.c:772:42: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/aacraid/src.c:772:42: sparse: got char *
drivers/scsi/aacraid/src.c:774:23: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/scsi/aacraid/src.c:774:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got char * @@
>> drivers/scsi/aacraid/src.c:774:42: sparse: expected void volatile [noderef] __iomem *mem
drivers/scsi/aacraid/src.c:774:42: sparse: got char *
--
>> drivers/scsi/arcmsr/arcmsr_hba.c:3130:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] *firm_model @@
>> drivers/scsi/arcmsr/arcmsr_hba.c:3130:41: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3130:41: sparse: got unsigned int [usertype] *firm_model
>> drivers/scsi/arcmsr/arcmsr_hba.c:3137:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] *firm_version @@
drivers/scsi/arcmsr/arcmsr_hba.c:3137:43: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3137:43: sparse: got unsigned int [usertype] *firm_version
>> drivers/scsi/arcmsr/arcmsr_hba.c:3144:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] *device_map @@
drivers/scsi/arcmsr/arcmsr_hba.c:3144:41: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3144:41: sparse: got unsigned int [usertype] *device_map
>> drivers/scsi/arcmsr/arcmsr_hba.c:3149:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3149:42: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3149:42: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3150:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3150:49: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3150:49: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3151:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3151:51: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3151:51: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3152:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3152:48: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3152:48: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3153:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3153:49: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3153:49: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3154:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3154:49: sparse: expected void const volatile [noderef] __iomem *mem
drivers/scsi/arcmsr/arcmsr_hba.c:3154:49: sparse: got unsigned int [usertype] *
drivers/scsi/arcmsr/arcmsr_hba.c:3172:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned int [usertype] *rwbuffer @@ got unsigned int [noderef] __iomem * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3172:40: sparse: expected unsigned int [usertype] *rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3172:40: sparse: got unsigned int [noderef] __iomem *
drivers/scsi/arcmsr/arcmsr_hba.c:3191:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned int [usertype] *rwbuffer @@ got unsigned int [noderef] [usertype] __iomem *message_rwbuffer @@
drivers/scsi/arcmsr/arcmsr_hba.c:3191:43: sparse: expected unsigned int [usertype] *rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3191:43: sparse: got unsigned int [noderef] [usertype] __iomem *message_rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3214:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned int [usertype] *rwbuffer @@ got unsigned int [noderef] __iomem * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3214:41: sparse: expected unsigned int [usertype] *rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3214:41: sparse: got unsigned int [noderef] __iomem *
drivers/scsi/arcmsr/arcmsr_hba.c:3236:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned int [usertype] *rwbuffer @@ got unsigned int [noderef] [usertype] __iomem *msgcode_rwbuffer @@
drivers/scsi/arcmsr/arcmsr_hba.c:3236:43: sparse: expected unsigned int [usertype] *rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3236:43: sparse: got unsigned int [noderef] [usertype] __iomem *msgcode_rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3262:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned int [usertype] *rwbuffer @@ got unsigned int [noderef] __iomem * @@
drivers/scsi/arcmsr/arcmsr_hba.c:3262:41: sparse: expected unsigned int [usertype] *rwbuffer
drivers/scsi/arcmsr/arcmsr_hba.c:3262:41: sparse: got unsigned int [noderef] __iomem *

vim +1245 drivers/scsi/3w-sas.c

f619106bdd9d19 Adam Radford 2009-10-23 1237
f619106bdd9d19 Adam Radford 2009-10-23 1238 /* This function will poll for a register change */
f619106bdd9d19 Adam Radford 2009-10-23 1239 static int twl_poll_register(TW_Device_Extension *tw_dev, void *reg, u32 value, u32 result, int seconds)
f619106bdd9d19 Adam Radford 2009-10-23 1240 {
f619106bdd9d19 Adam Radford 2009-10-23 1241 unsigned long before;
f619106bdd9d19 Adam Radford 2009-10-23 1242 int retval = 1;
f619106bdd9d19 Adam Radford 2009-10-23 1243 u32 reg_value;
f619106bdd9d19 Adam Radford 2009-10-23 1244
f619106bdd9d19 Adam Radford 2009-10-23 @1245 reg_value = readl(reg);
f619106bdd9d19 Adam Radford 2009-10-23 1246 before = jiffies;
f619106bdd9d19 Adam Radford 2009-10-23 1247
f619106bdd9d19 Adam Radford 2009-10-23 1248 while ((reg_value & value) != result) {
f619106bdd9d19 Adam Radford 2009-10-23 1249 reg_value = readl(reg);
f619106bdd9d19 Adam Radford 2009-10-23 1250 if (time_after(jiffies, before + HZ * seconds))
f619106bdd9d19 Adam Radford 2009-10-23 1251 goto out;
f619106bdd9d19 Adam Radford 2009-10-23 1252 msleep(50);
f619106bdd9d19 Adam Radford 2009-10-23 1253 }
f619106bdd9d19 Adam Radford 2009-10-23 1254 retval = 0;
f619106bdd9d19 Adam Radford 2009-10-23 1255 out:
f619106bdd9d19 Adam Radford 2009-10-23 1256 return retval;
f619106bdd9d19 Adam Radford 2009-10-23 1257 } /* End twl_poll_register() */
f619106bdd9d19 Adam Radford 2009-10-23 1258

:::::: The code at line 1245 was first introduced by commit
:::::: f619106bdd9d197c947f07108af57946f19a7f7e [SCSI] 3w-sas: Add new driver for LSI 3ware 9750

:::::: TO: adam radford <aradford@xxxxxxxxx>
:::::: CC: James Bottomley <James.Bottomley@xxxxxxx>

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

Attachment: .config.gz
Description: application/gzip