All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:doe 1/23] drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
@ 2023-01-31 10:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-31 10:01 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux doe
head:   6d855ec241ff68e65ed7badd7658c3e6d56b8da7
commit: 7d65a43d7a135805121ae8b13cb2e626ae442128 [1/23] cxl/pci: Fix CDAT retrieval on big endian
config: arc-randconfig-s031-20230131 (https://download.01.org/0day-ci/archive/20230131/202301311701.j9FcJxt8-lkp@intel.com/config)
compiler: arceb-elf-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://github.com/l1k/linux/commit/7d65a43d7a135805121ae8b13cb2e626ae442128
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k doe
        git checkout 7d65a43d7a135805121ae8b13cb2e626ae442128
        # 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=arc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash drivers/cxl/core/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
   drivers/cxl/core/pci.c:522:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] request_pl @@     got restricted __le32 [usertype] @@
   drivers/cxl/core/pci.c:522:9: sparse:     expected unsigned int [usertype] request_pl
   drivers/cxl/core/pci.c:522:9: sparse:     got restricted __le32 [usertype]
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
>> drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:549:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int [usertype] request_pl @@     got restricted __le32 [usertype] @@
   drivers/cxl/core/pci.c:549:17: sparse:     expected unsigned int [usertype] request_pl
   drivers/cxl/core/pci.c:549:17: sparse:     got restricted __le32 [usertype]
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32
   drivers/cxl/core/pci.c:565:32: sparse: sparse: cast to restricted __le32

vim +534 drivers/cxl/core/pci.c

   517	
   518	static int cxl_cdat_get_length(struct device *dev,
   519				       struct pci_doe_mb *cdat_doe,
   520				       size_t *length)
   521	{
   522		DECLARE_CDAT_DOE_TASK(CDAT_DOE_REQ(0), t);
   523		int rc;
   524	
   525		rc = pci_doe_submit_task(cdat_doe, &t.task);
   526		if (rc < 0) {
   527			dev_err(dev, "DOE submit failed: %d", rc);
   528			return rc;
   529		}
   530		wait_for_completion(&t.c);
   531		if (t.task.rv < sizeof(u32))
   532			return -EIO;
   533	
 > 534		*length = le32_to_cpu(t.response_pl[1]);
   535		dev_dbg(dev, "CDAT length %zu\n", *length);
   536	
   537		return 0;
   538	}
   539	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-31 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-31 10:01 [l1k:doe 1/23] drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.