public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Navneet Singh <navneet.singh@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	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>
Subject: [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'
Date: Sun, 9 Apr 2023 22:02:45 +0800	[thread overview]
Message-ID: <202304092230.dloBfRE5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-04-09 14:03 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=202304092230.dloBfRE5-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=llvm@lists.linux.dev \
    --cc=navneet.singh@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --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