* [linux-next:master 5894/7280] drivers/scsi/lpfc/lpfc_scsi.c:823:39: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-11-20 10:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-20 10:49 UTC (permalink / raw)
To: James Smart
Cc: kbuild-all, Linux Memory Management List, Martin K. Petersen,
Dick Kennedy
[-- Attachment #1: Type: text/plain, Size: 18912 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 95065cb54210eba86bed10cb2118041524d54573
commit: da255e2e7cc889e10820bc89752466322426571f [5894/7280] scsi: lpfc: Convert SCSI path to use common I/O submission path
config: powerpc64-randconfig-s032-20201120 (attached as .config)
compiler: powerpc64le-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-134-gb59dbdaf-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=da255e2e7cc889e10820bc89752466322426571f
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout da255e2e7cc889e10820bc89752466322426571f
# 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=powerpc64
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/lpfc/lpfc_scsi.c:129:30: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:131:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:131:28: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:131:28: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:397:35: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:398:34: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:401:32: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:404:35: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:405:34: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:408:32: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:693:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:693:22: sparse: expected unsigned int [usertype] addr_hi
drivers/scsi/lpfc/lpfc_scsi.c:693:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:694:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:694:22: sparse: expected unsigned int [usertype] addr_lo
drivers/scsi/lpfc/lpfc_scsi.c:694:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:695:22: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:697:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:697:20: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:697:20: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:698:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:698:22: sparse: expected unsigned int [usertype] sge_len
drivers/scsi/lpfc/lpfc_scsi.c:698:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:703:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:703:22: sparse: expected unsigned int [usertype] addr_hi
drivers/scsi/lpfc/lpfc_scsi.c:703:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:704:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:704:22: sparse: expected unsigned int [usertype] addr_lo
drivers/scsi/lpfc/lpfc_scsi.c:704:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:705:22: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:707:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:707:20: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:707:20: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:708:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:708:22: sparse: expected unsigned int [usertype] sge_len
drivers/scsi/lpfc/lpfc_scsi.c:708:22: sparse: got restricted __le32 [usertype]
>> drivers/scsi/lpfc/lpfc_scsi.c:823:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/scsi/lpfc/lpfc_scsi.c:823:39: sparse: expected unsigned int [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:823:39: sparse: got restricted __be32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:911:46: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:913:41: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:915:41: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:956:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] fcpDl @@ got restricted __be32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:956:25: sparse: expected unsigned int [usertype] fcpDl
drivers/scsi/lpfc/lpfc_scsi.c:956:25: sparse: got restricted __be32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1088:69: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] prot_data @@ got restricted __be32 [usertype] ref_tag @@
drivers/scsi/lpfc/lpfc_scsi.c:1088:69: sparse: expected unsigned int [usertype] prot_data
drivers/scsi/lpfc/lpfc_scsi.c:1088:69: sparse: got restricted __be32 [usertype] ref_tag
drivers/scsi/lpfc/lpfc_scsi.c:1209:69: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] prot_data @@ got restricted __be16 [usertype] app_tag @@
drivers/scsi/lpfc/lpfc_scsi.c:1209:69: sparse: expected unsigned int [usertype] prot_data
drivers/scsi/lpfc/lpfc_scsi.c:1209:69: sparse: got restricted __be16 [usertype] app_tag
drivers/scsi/lpfc/lpfc_scsi.c:1610:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1610:21: sparse: expected unsigned int [usertype] word0
drivers/scsi/lpfc/lpfc_scsi.c:1610:21: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1611:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] reftag @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1611:22: sparse: expected unsigned int [usertype] reftag
drivers/scsi/lpfc/lpfc_scsi.c:1611:22: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1644:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1644:21: sparse: expected unsigned int [usertype] word0
drivers/scsi/lpfc/lpfc_scsi.c:1644:21: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1645:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word1 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1645:21: sparse: expected unsigned int [usertype] word1
drivers/scsi/lpfc/lpfc_scsi.c:1645:21: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1646:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1646:21: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:1646:21: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1655:32: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1656:33: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1662:30: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1777:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1777:29: sparse: expected unsigned int [usertype] word0
drivers/scsi/lpfc/lpfc_scsi.c:1777:29: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1778:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] reftag @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1778:30: sparse: expected unsigned int [usertype] reftag
drivers/scsi/lpfc/lpfc_scsi.c:1778:30: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1806:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1806:29: sparse: expected unsigned int [usertype] word0
drivers/scsi/lpfc/lpfc_scsi.c:1806:29: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1807:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word1 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1807:29: sparse: expected unsigned int [usertype] word1
drivers/scsi/lpfc/lpfc_scsi.c:1807:29: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1808:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:1808:29: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:1808:29: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:1825:34: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1826:33: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1860:40: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1861:41: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:1884:38: sparse: sparse: cast to restricted __le32
drivers/scsi/lpfc/lpfc_scsi.c:2000:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2000:25: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/lpfc/lpfc_scsi.c:2000:25: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2027:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2027:23: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:2027:23: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2028:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word3 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2028:23: sparse: expected unsigned int [usertype] word3
drivers/scsi/lpfc/lpfc_scsi.c:2028:23: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2053:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2053:38: sparse: expected unsigned int [usertype] addr_lo
drivers/scsi/lpfc/lpfc_scsi.c:2053:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2055:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2055:38: sparse: expected unsigned int [usertype] addr_hi
drivers/scsi/lpfc/lpfc_scsi.c:2055:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2067:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2067:38: sparse: expected unsigned int [usertype] addr_lo
drivers/scsi/lpfc/lpfc_scsi.c:2067:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2068:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2068:38: sparse: expected unsigned int [usertype] addr_hi
drivers/scsi/lpfc/lpfc_scsi.c:2068:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2071:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2071:36: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:2071:36: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2072:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2072:38: sparse: expected unsigned int [usertype] sge_len
drivers/scsi/lpfc/lpfc_scsi.c:2072:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2082:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2082:36: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:2082:36: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2083:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2083:38: sparse: expected unsigned int [usertype] sge_len
drivers/scsi/lpfc/lpfc_scsi.c:2083:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2214:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2214:46: sparse: expected unsigned int [usertype] addr_lo
drivers/scsi/lpfc/lpfc_scsi.c:2214:46: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2216:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2216:46: sparse: expected unsigned int [usertype] addr_hi
drivers/scsi/lpfc/lpfc_scsi.c:2216:46: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2220:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2220:36: sparse: expected unsigned int [usertype] word2
drivers/scsi/lpfc/lpfc_scsi.c:2220:36: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2221:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2221:38: sparse: expected unsigned int [usertype] sge_len
drivers/scsi/lpfc/lpfc_scsi.c:2221:38: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2233:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restricted __le32 [usertype] @@
drivers/scsi/lpfc/lpfc_scsi.c:2233:33: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/lpfc/lpfc_scsi.c:2233:33: sparse: got restricted __le32 [usertype]
drivers/scsi/lpfc/lpfc_scsi.c:2268:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@
vim +823 drivers/scsi/lpfc/lpfc_scsi.c
807
808 /**
809 * lpfc_fcpcmd_to_iocb - copy the fcp_cmd data into the IOCB
810 * @data: A pointer to the immediate command data portion of the IOCB.
811 * @fcp_cmnd: The FCP Command that is provided by the SCSI layer.
812 *
813 * The routine copies the entire FCP command from @fcp_cmnd to @data while
814 * byte swapping the data to big endian format for transmission on the wire.
815 **/
816 static void
817 lpfc_fcpcmd_to_iocb(u8 *data, struct fcp_cmnd *fcp_cmnd)
818 {
819 int i, j;
820
821 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd);
822 i += sizeof(uint32_t), j++) {
> 823 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]);
824 }
825 }
826
---
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: 38802 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-20 10:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 10:49 [linux-next:master 5894/7280] drivers/scsi/lpfc/lpfc_scsi.c:823:39: sparse: sparse: incorrect type in assignment (different base types) 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