[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007080937.TP0XSsuQ%lkp@intel.com>
Date: Wed, 8 Jul 2020 09:50:52 +0800
From: kernel test robot <lkp@...el.com>
To: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/scsi/mpt3sas/mpt3sas_base.c:3255:28: sparse: sparse:
incorrect type in argument 1 (different modifiers)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aa27b32b76d0b1b242d43977da0e5358da1c825f
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 3 weeks ago
config: arc-randconfig-s031-20200707 (attached as .config)
compiler: arc-elf-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-31-gabbfd661-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=arc
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/scsi/mpt3sas/mpt3sas_base.c:1632:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/scsi/mpt3sas/mpt3sas_base.c:1632:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mpt3sas/mpt3sas_base.c:1632:33: sparse: got unsigned int [usertype] *
drivers/scsi/mpt3sas/mpt3sas_base.c:1687:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/scsi/mpt3sas/mpt3sas_base.c:1687:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mpt3sas/mpt3sas_base.c:1687:17: sparse: got unsigned int [usertype] *
>> drivers/scsi/mpt3sas/mpt3sas_base.c:3255:28: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void const [noderef] __iomem *addr @@ got struct _MPI2_SYSTEM_INTERFACE_REGS volatile [noderef] [usertype] __iomem *chip @@
>> drivers/scsi/mpt3sas/mpt3sas_base.c:3255:28: sparse: expected void const [noderef] __iomem *addr
drivers/scsi/mpt3sas/mpt3sas_base.c:3255:28: sparse: got struct _MPI2_SYSTEM_INTERFACE_REGS volatile [noderef] [usertype] __iomem *chip
drivers/scsi/mpt3sas/mpt3sas_base.c:4021:9: sparse: sparse: cast from restricted __le32
drivers/scsi/mpt3sas/mpt3sas_base.c:4043:9: sparse: sparse: cast from restricted __le32
drivers/scsi/mpt3sas/mpt3sas_base.c:4066:9: sparse: sparse: cast from restricted __le32
drivers/scsi/mpt3sas/mpt3sas_base.c:4087:9: sparse: sparse: cast from restricted __le32
drivers/scsi/mpt3sas/mpt3sas_base.c:5917:17: sparse: sparse: cast from restricted __le32
drivers/scsi/mpt3sas/mpt3sas_base.c:5936:20: sparse: sparse: cast to restricted __le16
drivers/scsi/mpt3sas/mpt3sas_base.c:5944:20: sparse: sparse: cast to restricted __le16
drivers/scsi/mpt3sas/mpt3sas_base.c:5957:36: sparse: sparse: cast to restricted __le16
drivers/scsi/mpt3sas/mpt3sas_base.c:7088:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/scsi/mpt3sas/mpt3sas_base.c:7088:25: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mpt3sas/mpt3sas_base.c:7088:25: sparse: got unsigned int [usertype] *
--
>> drivers/scsi/megaraid.c:4489:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
>> drivers/scsi/megaraid.c:4489:26: sparse: expected void const [noderef] __iomem *addr
drivers/scsi/megaraid.c:4489:26: sparse: got void *
drivers/scsi/megaraid.c:4548:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/scsi/megaraid.c:4548:26: sparse: expected void const [noderef] __iomem *addr
drivers/scsi/megaraid.c:4548:26: sparse: got void *
--
drivers/scsi/hptiop.c:150:53: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:171:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:171:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:171:9: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:208:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:208:18: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:208:18: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:209:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:209:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:209:9: 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:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:369:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:369:9: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:370:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:370:9: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:370:9: 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:557:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:557:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:557:9: 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 [noderef] __iomem *addr @@ got struct hpt_iopmv_regs *regs @@
>> drivers/scsi/hptiop.c:643:34: sparse: expected void const [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 [noderef] __iomem *addr @@ got struct hpt_iopmv_regs *regs @@
drivers/scsi/hptiop.c:667:26: sparse: expected void const [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:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:976:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:978:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:981:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:983:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:986:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:988:9: sparse: sparse: cast from restricted __le32
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:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:1536:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:1536:9: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:1537:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:1537:9: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:1537:9: 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/mvumi.c:81:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *p @@ got void * @@
>> drivers/scsi/mvumi.c:81:52: sparse: expected void [noderef] __iomem *p
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 volatile [noderef] __iomem *addr @@ got void *inb_read_pointer @@
drivers/scsi/mvumi.c:407:40: sparse: expected void const volatile [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 void const volatile [noderef] __iomem *addr @@ got void *ib_shadow @@
drivers/scsi/mvumi.c:429:30: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:429:30: sparse: got void *ib_shadow
drivers/scsi/mvumi.c:458:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *ib_shadow @@
drivers/scsi/mvumi.c:458:31: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:458:31: sparse: got void *ib_shadow
drivers/scsi/mvumi.c:459:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *inb_write_pointer @@
drivers/scsi/mvumi.c:459:48: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:459:48: sparse: got void *inb_write_pointer
drivers/scsi/mvumi.c:496:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_copy_pointer @@
drivers/scsi/mvumi.c:496:41: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:496:41: sparse: got void *outb_copy_pointer
drivers/scsi/mvumi.c:497:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *ob_shadow @@
drivers/scsi/mvumi.c:497:48: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:497:48: sparse: got void *ob_shadow
drivers/scsi/mvumi.c:516:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_read_pointer @@
drivers/scsi/mvumi.c:516:33: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:516:33: sparse: got void *outb_read_pointer
drivers/scsi/mvumi.c:517:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_copy_pointer @@
drivers/scsi/mvumi.c:517:33: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:517:33: sparse: got void *outb_copy_pointer
drivers/scsi/mvumi.c:578:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *outb_read_pointer @@
drivers/scsi/mvumi.c:578:42: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:578:42: sparse: got void *outb_read_pointer
drivers/scsi/mvumi.c:585:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:585:26: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:585:26: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:586:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:586:26: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:586:26: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pciea_to_arm_drbl_reg @@
drivers/scsi/mvumi.c:589:40: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:589:40: sparse: got void *pciea_to_arm_drbl_reg
drivers/scsi/mvumi.c:1281:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_drbl_reg @@
drivers/scsi/mvumi.c:1281:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1281:28: sparse: got void *arm_to_pciea_drbl_reg
drivers/scsi/mvumi.c:1282:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_drbl_reg @@
drivers/scsi/mvumi.c:1282:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1282:28: sparse: got void *arm_to_pciea_drbl_reg
drivers/scsi/mvumi.c:1284:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_mask_reg @@
drivers/scsi/mvumi.c:1284:48: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1284:48: sparse: got void *arm_to_pciea_mask_reg
drivers/scsi/mvumi.c:1285:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:1285:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1285:28: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:1286:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:1286:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1286:28: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:612:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:612:26: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:612:26: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:613:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:613:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:613:28: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:615:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pciea_to_arm_drbl_reg @@
drivers/scsi/mvumi.c:615:46: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:615:46: sparse: got void *pciea_to_arm_drbl_reg
drivers/scsi/mvumi.c:624:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:624:36: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:624:36: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:670:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_enable @@
drivers/scsi/mvumi.c:670:32: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:670:32: sparse: got void *reset_enable
drivers/scsi/mvumi.c:671:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_request @@
drivers/scsi/mvumi.c:671:34: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:671:34: sparse: got void *reset_request
drivers/scsi/mvumi.c:673:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_enable @@
drivers/scsi/mvumi.c:673:35: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:673:35: sparse: got void *reset_enable
--
drivers/scsi/aic7xxx/aic79xx_osm.c:2266:16: sparse: sparse: cast to restricted __le16
drivers/scsi/aic7xxx/aic79xx_osm.c:2285:37: sparse: sparse: cast to restricted __le16
>> drivers/scsi/aic7xxx/aic79xx_osm.c:1354:45: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void const [noderef] __iomem *addr @@ got unsigned char volatile [noderef] [usertype] __iomem *maddr @@
>> drivers/scsi/aic7xxx/aic79xx_osm.c:1354:45: sparse: expected void const [noderef] __iomem *addr
drivers/scsi/aic7xxx/aic79xx_osm.c:1354:45: sparse: got unsigned char volatile [noderef] [usertype] __iomem *maddr
drivers/scsi/aic7xxx/aic79xx_osm.c:1773:49: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:511:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] s @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:511:22: sparse: expected unsigned short [usertype] s
include/asm-generic/io.h:511:22: sparse: got restricted __le16 [usertype]
--
drivers/scsi/aic7xxx/aic7xxx_osm.c:1536:25: sparse: sparse: invalid assignment: |=
drivers/scsi/aic7xxx/aic7xxx_osm.c:1536:25: sparse: left side has type unsigned int
drivers/scsi/aic7xxx/aic7xxx_osm.c:1536:25: sparse: right side has type restricted __le32
drivers/scsi/aic7xxx/aic7xxx_osm.c:1541:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgptr @@ got restricted __le32 [usertype] @@
drivers/scsi/aic7xxx/aic7xxx_osm.c:1541:34: sparse: expected unsigned int [usertype] sgptr
drivers/scsi/aic7xxx/aic7xxx_osm.c:1541:34: sparse: got restricted __le32 [usertype]
drivers/scsi/aic7xxx/aic7xxx_osm.c:1551:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgptr @@ got restricted __le32 [usertype] @@
drivers/scsi/aic7xxx/aic7xxx_osm.c:1551:34: sparse: expected unsigned int [usertype] sgptr
drivers/scsi/aic7xxx/aic7xxx_osm.c:1551:34: sparse: got restricted __le32 [usertype]
drivers/scsi/aic7xxx/aic7xxx_osm.c:480:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __le32 [usertype] @@
drivers/scsi/aic7xxx/aic7xxx_osm.c:480:18: sparse: expected unsigned int [usertype] addr
drivers/scsi/aic7xxx/aic7xxx_osm.c:480:18: sparse: got restricted __le32 [usertype]
drivers/scsi/aic7xxx/aic7xxx_osm.c:487:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __le32 [usertype] @@
drivers/scsi/aic7xxx/aic7xxx_osm.c:487:17: sparse: expected unsigned int [usertype] len
drivers/scsi/aic7xxx/aic7xxx_osm.c:487:17: sparse: got restricted __le32 [usertype]
>> drivers/scsi/aic7xxx/aic7xxx_osm.c:1241:41: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void const [noderef] __iomem *addr @@ got unsigned char volatile [noderef] [usertype] __iomem *[usertype] maddr @@
>> drivers/scsi/aic7xxx/aic7xxx_osm.c:1241:41: sparse: expected void const [noderef] __iomem *addr
>> drivers/scsi/aic7xxx/aic7xxx_osm.c:1241:41: sparse: got unsigned char volatile [noderef] [usertype] __iomem *[usertype] maddr
vim +3255 drivers/scsi/mpt3sas/mpt3sas_base.c
f92363d12359498 Sreekanth Reddy 2012-11-30 3235
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3236 /**
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3237 * mpt3sas_base_unmap_resources - free controller resources
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3238 * @ioc: per adapter object
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3239 */
8bbb1cf63f5e345 Calvin Owens 2016-07-28 3240 static void
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3241 mpt3sas_base_unmap_resources(struct MPT3SAS_ADAPTER *ioc)
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3242 {
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3243 struct pci_dev *pdev = ioc->pdev;
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3244
1f95a47eec979e4 Joe Perches 2018-09-17 3245 dexitprintk(ioc, ioc_info(ioc, "%s\n", __func__));
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3246
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3247 _base_free_irq(ioc);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3248 _base_disable_msix(ioc);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3249
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3250 kfree(ioc->replyPostRegisterIndex);
5f985d88bac34e7 Tomas Henzl 2015-12-23 3251 ioc->replyPostRegisterIndex = NULL;
2b48be65685a23f Chaitra P B 2018-05-31 3252
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3253
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3254 if (ioc->chip_phys) {
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 @3255 iounmap(ioc->chip);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3256 ioc->chip_phys = 0;
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3257 }
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3258
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3259 if (pci_is_enabled(pdev)) {
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3260 pci_release_selected_regions(ioc->pdev, ioc->bars);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3261 pci_disable_pcie_error_reporting(pdev);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3262 pci_disable_device(pdev);
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3263 }
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3264 }
580d4e3153f0d7a Sreekanth Reddy 2015-06-30 3265
:::::: The code at line 3255 was first introduced by commit
:::::: 580d4e3153f0d7a9a9235b675b0b7b13e2185a8b mpt3sas: Remove redundancy code while freeing the controller resources.
:::::: TO: Sreekanth Reddy <sreekanth.reddy@...gotech.com>
:::::: CC: James Bottomley <JBottomley@...n.com>
---
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" (28529 bytes)
Powered by blists - more mailing lists