All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [cxl:preview 60/60] drivers/cxl/region.c:734: undefined reference to `nvdimm_pmem_region_create'
Date: Thu, 27 Jan 2022 18:56:26 +0800	[thread overview]
Message-ID: <202201271831.cqd50BdJ-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3139 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head:   41c2d219a2c8e14de644f4e953e0c57402c3e884
commit: 41c2d219a2c8e14de644f4e953e0c57402c3e884 [60/60] cxl/region: Create an nd_region
config: x86_64-randconfig-a001-20220124 (https://download.01.org/0day-ci/archive/20220127/202201271831.cqd50BdJ-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=41c2d219a2c8e14de644f4e953e0c57402c3e884
        git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
        git fetch --no-tags cxl preview
        git checkout 41c2d219a2c8e14de644f4e953e0c57402c3e884
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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 >>):

   ld: drivers/cxl/region.o: in function `connect_to_libnvdimm':
>> drivers/cxl/region.c:734: undefined reference to `nvdimm_pmem_region_create'


vim +734 drivers/cxl/region.c

   693	
   694	static int connect_to_libnvdimm(struct cxl_region *region)
   695	{
   696		struct nd_region_desc ndr_desc;
   697		struct cxl_nvdimm_bridge *nvb;
   698		struct nd_region *ndr;
   699		int rc = 0;
   700	
   701		nvb = cxl_find_nvdimm_bridge(&region->config.targets[0]->dev);
   702		if (!nvb) {
   703			dev_dbg(&region->dev, "Couldn't find nvdimm bridge\n");
   704			return -ENODEV;
   705		}
   706	
   707		device_lock(&nvb->dev);
   708		if (!nvb->nvdimm_bus) {
   709			dev_dbg(&nvb->dev, "Couldn't find nvdimm bridge's bus\n");
   710			rc = -ENXIO;
   711			goto out;
   712		}
   713	
   714		memset(&ndr_desc, 0, sizeof(ndr_desc));
   715	
   716		ndr_desc.res = region->res;
   717	
   718		ndr_desc.numa_node = memory_add_physaddr_to_nid(region->res->start);
   719		ndr_desc.target_node = phys_to_target_node(region->res->start);
   720		if (ndr_desc.numa_node == NUMA_NO_NODE) {
   721			ndr_desc.numa_node =
   722				memory_add_physaddr_to_nid(region->res->start);
   723			dev_info(&region->dev,
   724				 "changing numa node from %d to %d for CXL region %pR",
   725				 NUMA_NO_NODE, ndr_desc.numa_node, region->res);
   726		}
   727		if (ndr_desc.target_node == NUMA_NO_NODE) {
   728			ndr_desc.target_node = ndr_desc.numa_node;
   729			dev_info(&region->dev,
   730				 "changing target node from %d to %d for CXL region %pR",
   731				 NUMA_NO_NODE, ndr_desc.target_node, region->res);
   732		}
   733	
 > 734		ndr = nvdimm_pmem_region_create(nvb->nvdimm_bus, &ndr_desc);
   735		if (IS_ERR(ndr))
   736			rc = PTR_ERR(ndr);
   737		else
   738			dev_set_drvdata(&region->dev, ndr);
   739	
   740	out:
   741		device_unlock(&nvb->dev);
   742		put_device(&nvb->dev);
   743		return rc;
   744	}
   745	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Ben Widawsky <ben.widawsky@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 60/60] drivers/cxl/region.c:734: undefined reference to `nvdimm_pmem_region_create'
Date: Thu, 27 Jan 2022 18:56:26 +0800	[thread overview]
Message-ID: <202201271831.cqd50BdJ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head:   41c2d219a2c8e14de644f4e953e0c57402c3e884
commit: 41c2d219a2c8e14de644f4e953e0c57402c3e884 [60/60] cxl/region: Create an nd_region
config: x86_64-randconfig-a001-20220124 (https://download.01.org/0day-ci/archive/20220127/202201271831.cqd50BdJ-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=41c2d219a2c8e14de644f4e953e0c57402c3e884
        git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
        git fetch --no-tags cxl preview
        git checkout 41c2d219a2c8e14de644f4e953e0c57402c3e884
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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 >>):

   ld: drivers/cxl/region.o: in function `connect_to_libnvdimm':
>> drivers/cxl/region.c:734: undefined reference to `nvdimm_pmem_region_create'


vim +734 drivers/cxl/region.c

   693	
   694	static int connect_to_libnvdimm(struct cxl_region *region)
   695	{
   696		struct nd_region_desc ndr_desc;
   697		struct cxl_nvdimm_bridge *nvb;
   698		struct nd_region *ndr;
   699		int rc = 0;
   700	
   701		nvb = cxl_find_nvdimm_bridge(&region->config.targets[0]->dev);
   702		if (!nvb) {
   703			dev_dbg(&region->dev, "Couldn't find nvdimm bridge\n");
   704			return -ENODEV;
   705		}
   706	
   707		device_lock(&nvb->dev);
   708		if (!nvb->nvdimm_bus) {
   709			dev_dbg(&nvb->dev, "Couldn't find nvdimm bridge's bus\n");
   710			rc = -ENXIO;
   711			goto out;
   712		}
   713	
   714		memset(&ndr_desc, 0, sizeof(ndr_desc));
   715	
   716		ndr_desc.res = region->res;
   717	
   718		ndr_desc.numa_node = memory_add_physaddr_to_nid(region->res->start);
   719		ndr_desc.target_node = phys_to_target_node(region->res->start);
   720		if (ndr_desc.numa_node == NUMA_NO_NODE) {
   721			ndr_desc.numa_node =
   722				memory_add_physaddr_to_nid(region->res->start);
   723			dev_info(&region->dev,
   724				 "changing numa node from %d to %d for CXL region %pR",
   725				 NUMA_NO_NODE, ndr_desc.numa_node, region->res);
   726		}
   727		if (ndr_desc.target_node == NUMA_NO_NODE) {
   728			ndr_desc.target_node = ndr_desc.numa_node;
   729			dev_info(&region->dev,
   730				 "changing target node from %d to %d for CXL region %pR",
   731				 NUMA_NO_NODE, ndr_desc.target_node, region->res);
   732		}
   733	
 > 734		ndr = nvdimm_pmem_region_create(nvb->nvdimm_bus, &ndr_desc);
   735		if (IS_ERR(ndr))
   736			rc = PTR_ERR(ndr);
   737		else
   738			dev_set_drvdata(&region->dev, ndr);
   739	
   740	out:
   741		device_unlock(&nvb->dev);
   742		put_device(&nvb->dev);
   743		return rc;
   744	}
   745	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

             reply	other threads:[~2022-01-27 10:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 10:56 kernel test robot [this message]
2022-01-27 10:56 ` [cxl:preview 60/60] drivers/cxl/region.c:734: undefined reference to `nvdimm_pmem_region_create' 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=202201271831.cqd50BdJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@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.