From: kernel test robot <lkp@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: kbuild-all@lists.01.org,
Alison Schofield <alison.schofield@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
Ben Widawsky <ben.widawsky@intel.com>,
Dan Williams <dan.j.williams@intel.com>,
linux-kernel@vger.kernel.org
Subject: [cxl:preview 40/67] drivers/cxl/core/pci.c:137:21: error: implicit declaration of function 'readq'; did you mean 'readl'?
Date: Thu, 12 May 2022 19:23:01 +0800 [thread overview]
Message-ID: <202205121947.4e1h4uZF-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: 9c642abd8b31d895f34186bd72b7360083b58492
commit: e7ed4a0688738b1f47a6b500444942d4dfa1035d [40/67] cxl/pci: Move cxl_await_media_ready() to the core
config: powerpc-buildonly-randconfig-r003-20220509 (https://download.01.org/0day-ci/archive/20220512/202205121947.4e1h4uZF-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=e7ed4a0688738b1f47a6b500444942d4dfa1035d
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout e7ed4a0688738b1f47a6b500444942d4dfa1035d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 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>
All errors (new ones prefixed by >>):
drivers/cxl/core/pci.c: In function 'cxl_await_media_ready':
>> drivers/cxl/core/pci.c:137:21: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
137 | md_status = readq(cxlds->regs.memdev + CXLMDEV_STATUS_OFFSET);
| ^~~~~
| readl
cc1: some warnings being treated as errors
vim +137 drivers/cxl/core/pci.c
103
104 /*
105 * Wait up to @media_ready_timeout for the device to report memory
106 * active.
107 */
108 int cxl_await_media_ready(struct cxl_dev_state *cxlds)
109 {
110 struct pci_dev *pdev = to_pci_dev(cxlds->dev);
111 int d = cxlds->cxl_dvsec;
112 bool active = false;
113 u64 md_status;
114 int rc, i;
115
116 for (i = media_ready_timeout; i; i--) {
117 u32 temp;
118
119 rc = pci_read_config_dword(
120 pdev, d + CXL_DVSEC_RANGE_SIZE_LOW(0), &temp);
121 if (rc)
122 return rc;
123
124 active = FIELD_GET(CXL_DVSEC_MEM_ACTIVE, temp);
125 if (active)
126 break;
127 msleep(1000);
128 }
129
130 if (!active) {
131 dev_err(&pdev->dev,
132 "timeout awaiting memory active after %d seconds\n",
133 media_ready_timeout);
134 return -ETIMEDOUT;
135 }
136
> 137 md_status = readq(cxlds->regs.memdev + CXLMDEV_STATUS_OFFSET);
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-05-12 11:24 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=202205121947.4e1h4uZF-lkp@intel.com \
--to=lkp@intel.com \
--cc=alison.schofield@intel.com \
--cc=ben.widawsky@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vishal.l.verma@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox