[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201271831.cqd50BdJ-lkp@intel.com>
Date: Thu, 27 Jan 2022 18:56:26 +0800
From: kernel test robot <lkp@...el.com>
To: Ben Widawsky <ben.widawsky@...el.com>
Cc: kbuild-all@...ts.01.org,
Alison Schofield <alison.schofield@...el.com>,
Vishal Verma <vishal.l.verma@...el.com>,
Ira Weiny <ira.weiny@...el.com>,
Ben Widawsky <ben.widawsky@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
linux-kernel@...r.kernel.org
Subject: [cxl:preview 60/60] drivers/cxl/region.c:734: undefined reference to
`nvdimm_pmem_region_create'
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@...el.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(®ion->config.targets[0]->dev);
702 if (!nvb) {
703 dev_dbg(®ion->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(®ion->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(®ion->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(®ion->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
Powered by blists - more mailing lists