From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [l1k:doe 1/23] drivers/cxl/core/pci.c:534:19: sparse: sparse: cast to restricted __le32
Date: Tue, 31 Jan 2023 18:01:55 +0800 [thread overview]
Message-ID: <202301311701.j9FcJxt8-lkp@intel.com> (raw)
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
reply other threads:[~2023-01-31 10:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301311701.j9FcJxt8-lkp@intel.com \
--to=lkp@intel.com \
--cc=lukas@wunner.de \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.