[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211050221.wBOuzPXW-lkp@intel.com>
Date: Sat, 5 Nov 2022 02:08:31 +0800
From: kernel test robot <lkp@...el.com>
To: Kefeng Wang <wangkefeng.wang@...wei.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Will Deacon <will@...nel.org>, Christoph Hellwig <hch@....de>,
Arnd Bergmann <arnd@...db.de>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Subject: drivers/scsi/hptiop.c:643:34: sparse: sparse: incorrect type in
argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee6050c8af96bba2f81e8b0793a1fc2f998fcd20
commit: d803336abdbc1bfacdb32b2cf9f4fdbee072b8ee ARM: mm: kill unused runtime hook arch_iounmap()
date: 4 months ago
config: arm-randconfig-s033-20221104
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d803336abdbc1bfacdb32b2cf9f4fdbee072b8ee
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d803336abdbc1bfacdb32b2cf9f4fdbee072b8ee
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/scsi/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/scsi/hptiop.c:150:17: 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 volatile [noderef] __iomem *io_addr @@ got struct hpt_iopmv_regs *regs @@
drivers/scsi/hptiop.c:643:34: sparse: expected void volatile [noderef] __iomem *io_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 volatile [noderef] __iomem *io_addr @@ got struct hpt_iopmv_regs *regs @@
drivers/scsi/hptiop.c:667:26: sparse: expected void volatile [noderef] __iomem *io_addr
drivers/scsi/hptiop.c:667:26: sparse: got struct hpt_iopmv_regs *regs
drivers/scsi/hptiop.c:933:27: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:938:34: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:939:30: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:943:43: sparse: sparse: invalid assignment: &=
drivers/scsi/hptiop.c:943:43: sparse: left side has type restricted __le32
drivers/scsi/hptiop.c:943:43: sparse: right side has type int
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:949:57: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/hptiop.c:949:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] intrfc_len @@ got unsigned int @@
drivers/scsi/hptiop.c:949:48: sparse: expected restricted __le32 [usertype] intrfc_len
drivers/scsi/hptiop.c:949:48: sparse: got unsigned int
drivers/scsi/hptiop.c:950:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:975:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:977:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:980:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:982:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:985:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:987:9: sparse: sparse: cast from restricted __le32
drivers/scsi/hptiop.c:990:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] inlist_wptr @@ got unsigned int @@
drivers/scsi/hptiop.c:990:35: sparse: expected restricted __le32 [usertype] inlist_wptr
drivers/scsi/hptiop.c:990:35: sparse: got unsigned int
drivers/scsi/hptiop.c:991:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int @@
drivers/scsi/hptiop.c:991:37: sparse: expected restricted __le32 [usertype]
drivers/scsi/hptiop.c:991:37: sparse: got unsigned int
drivers/scsi/hptiop.c:992:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] outlist_rptr @@ got unsigned int @@
drivers/scsi/hptiop.c:992:36: sparse: expected restricted __le32 [usertype] outlist_rptr
drivers/scsi/hptiop.c:992:36: sparse: got unsigned int
drivers/scsi/hptiop.c:1534:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/scsi/hptiop.c:1534:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:1534:9: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:1535: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:1535:9: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/hptiop.c:1535:9: sparse: got restricted __le32 *
drivers/scsi/hptiop.c:150:17: sparse: sparse: dereference of noderef expression
drivers/scsi/hptiop.c:150:17: sparse: sparse: dereference of noderef expression
vim +643 drivers/scsi/hptiop.c
00f5970193e22c HighPoint Linux Team 2007-12-13 634
00f5970193e22c HighPoint Linux Team 2007-12-13 635 static int hptiop_map_pci_bar_mv(struct hptiop_hba *hba)
00f5970193e22c HighPoint Linux Team 2007-12-13 636 {
00f5970193e22c HighPoint Linux Team 2007-12-13 637 hba->u.mv.regs = hptiop_map_pci_bar(hba, 0);
9bcf091083065c Harvey Harrison 2008-05-22 638 if (hba->u.mv.regs == NULL)
00f5970193e22c HighPoint Linux Team 2007-12-13 639 return -1;
00f5970193e22c HighPoint Linux Team 2007-12-13 640
00f5970193e22c HighPoint Linux Team 2007-12-13 641 hba->u.mv.mu = hptiop_map_pci_bar(hba, 2);
9bcf091083065c Harvey Harrison 2008-05-22 642 if (hba->u.mv.mu == NULL) {
00f5970193e22c HighPoint Linux Team 2007-12-13 @643 iounmap(hba->u.mv.regs);
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 644 return -1;
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 645 }
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 646
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 647 return 0;
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 648 }
ede1e6f8b43246 HighPoint Linux Team 2006-05-16 649
:::::: The code at line 643 was first introduced by commit
:::::: 00f5970193e22c48f399a2430635d6416b51befe [SCSI] hptiop: add more adapter models and other fixes
:::::: TO: HighPoint Linux Team <linux@...hpoint-tech.com>
:::::: CC: James Bottomley <James.Bottomley@...senPartnership.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (177208 bytes)
Powered by blists - more mailing lists