* [cxl:for-6.5/dcd-preview 10/15] drivers/cxl/core/port.c:316:6: error: use of undeclared identifier 'dev_attr_create_dc_region'
@ 2023-04-09 14:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-09 14:02 UTC (permalink / raw)
To: Navneet Singh
Cc: llvm, oe-kbuild-all, Alison Schofield, Vishal Verma, Ira Weiny,
Ben Widawsky, Dan Williams
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git for-6.5/dcd-preview
head: f425bc34c600e2a3721d6560202962ec41622815
commit: 5d722120a10d7263de3f874708cf795ca34c9c0c [10/15] cxl/region: Add dynamic capacity cxl region support.
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20230409/202304092230.dloBfRE5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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=5d722120a10d7263de3f874708cf795ca34c9c0c
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl for-6.5/dcd-preview
git checkout 5d722120a10d7263de3f874708cf795ca34c9c0c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304092230.dloBfRE5-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/cxl/core/port.c:316:6: error: use of undeclared identifier 'dev_attr_create_dc_region'
&dev_attr_create_dc_region.attr, NULL)) {
^
1 error generated.
vim +/dev_attr_create_dc_region +316 drivers/cxl/core/port.c
305
306 int add_dc_region_attribute(struct device *dev, void *data)
307 {
308 struct cxl_root_decoder *cxlrd;
309
310 if (!is_root_decoder(dev))
311 return 0;
312
313 cxlrd = to_cxl_root_decoder(dev);
314 if (!cxlrd->dc_sysfs_initialized) {
315 if (sysfs_add_file_to_group(&dev->kobj,
> 316 &dev_attr_create_dc_region.attr, NULL)) {
317 dev_err(dev, "Failed to create_dc_region file\n");
318 cxlrd->dc_sysfs_initialized = true;
319 return 1;
320 }
321 }
322
323 return 0;
324 }
325 EXPORT_SYMBOL_NS_GPL(add_dc_region_attribute, CXL);
326
--
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-04-09 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-09 14:02 [cxl:for-6.5/dcd-preview 10/15] drivers/cxl/core/port.c:316:6: error: use of undeclared identifier 'dev_attr_create_dc_region' 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;
as well as URLs for NNTP newsgroup(s).