From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [cxl:preview 35/53] drivers/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef]
Date: Sat, 22 Jan 2022 23:25:56 +0800 [thread overview]
Message-ID: <202201222308.W2DGbf9w-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4781 bytes --]
CC: kbuild-all(a)lists.01.org
CC: Alison Schofield <alison.schofield@intel.com>
CC: Vishal Verma <vishal.l.verma@intel.com>
CC: Ira Weiny <ira.weiny@intel.com>
CC: Ben Widawsky <ben.widawsky@intel.com>
CC: Dan Williams <dan.j.williams@intel.com>
CC: linux-kernel(a)vger.kernel.org
TO: Dan Williams <dan.j.williams@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a [35/53] cxl/core/hdm: Add CXL standard decoder enumeration to the core
:::::: branch date: 13 hours ago
:::::: commit date: 16 hours ago
config: powerpc-randconfig-s031-20220119 (https://download.01.org/0day-ci/archive/20220122/202201222308.W2DGbf9w-lkp(a)intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=47810cb0a1d64b0b7d06e7856981a0afcbe25a0a
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/cxl/core/
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/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef]
>> drivers/cxl/core/hdm.c:100:28: sparse: sparse: multiple address spaces given: __iomem & __iomem
vim +100 drivers/cxl/core/hdm.c
47810cb0a1d64b Dan Williams 2022-01-19 93
47810cb0a1d64b Dan Williams 2022-01-19 94 /**
47810cb0a1d64b Dan Williams 2022-01-19 95 * devm_cxl_setup_hdm - map HDM decoder component registers
47810cb0a1d64b Dan Williams 2022-01-19 96 * @port: cxl_port to map
47810cb0a1d64b Dan Williams 2022-01-19 97 */
47810cb0a1d64b Dan Williams 2022-01-19 98 struct cxl_hdm *devm_cxl_setup_hdm(struct device *host, struct cxl_port *port)
47810cb0a1d64b Dan Williams 2022-01-19 99 {
47810cb0a1d64b Dan Williams 2022-01-19 @100 void __iomem *crb, __iomem *hdm;
47810cb0a1d64b Dan Williams 2022-01-19 101 struct device *dev = &port->dev;
47810cb0a1d64b Dan Williams 2022-01-19 102 struct cxl_hdm *cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19 103
47810cb0a1d64b Dan Williams 2022-01-19 104 cxlhdm = devm_kzalloc(host, sizeof(*cxlhdm), GFP_KERNEL);
47810cb0a1d64b Dan Williams 2022-01-19 105 if (!cxlhdm)
47810cb0a1d64b Dan Williams 2022-01-19 106 return ERR_PTR(-ENOMEM);
47810cb0a1d64b Dan Williams 2022-01-19 107
47810cb0a1d64b Dan Williams 2022-01-19 108 cxlhdm->port = port;
47810cb0a1d64b Dan Williams 2022-01-19 109 crb = devm_cxl_iomap_block(host, port->component_reg_phys,
47810cb0a1d64b Dan Williams 2022-01-19 110 CXL_COMPONENT_REG_BLOCK_SIZE);
47810cb0a1d64b Dan Williams 2022-01-19 111 if (!crb) {
47810cb0a1d64b Dan Williams 2022-01-19 112 dev_err(dev, "No component registers mapped\n");
47810cb0a1d64b Dan Williams 2022-01-19 113 return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19 114 }
47810cb0a1d64b Dan Williams 2022-01-19 115
47810cb0a1d64b Dan Williams 2022-01-19 116 hdm = map_hdm_decoder_regs(port, crb);
47810cb0a1d64b Dan Williams 2022-01-19 117 if (IS_ERR(hdm))
47810cb0a1d64b Dan Williams 2022-01-19 118 return ERR_CAST(hdm);
47810cb0a1d64b Dan Williams 2022-01-19 119 cxlhdm->regs.hdm_decoder = hdm;
47810cb0a1d64b Dan Williams 2022-01-19 120
47810cb0a1d64b Dan Williams 2022-01-19 121 parse_hdm_decoder_caps(cxlhdm);
47810cb0a1d64b Dan Williams 2022-01-19 122 if (cxlhdm->decoder_count == 0) {
47810cb0a1d64b Dan Williams 2022-01-19 123 dev_err(dev, "Spec violation. Caps invalid\n");
47810cb0a1d64b Dan Williams 2022-01-19 124 return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19 125 }
47810cb0a1d64b Dan Williams 2022-01-19 126
47810cb0a1d64b Dan Williams 2022-01-19 127 return cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19 128 }
47810cb0a1d64b Dan Williams 2022-01-19 129 EXPORT_SYMBOL_NS_GPL(devm_cxl_setup_hdm, CXL);
47810cb0a1d64b Dan Williams 2022-01-19 130
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-22 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-22 15:25 kernel test robot [this message]
2022-01-24 5:23 ` [cxl:preview 35/53] drivers/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef] kernel test robot
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=202201222308.W2DGbf9w-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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.