[cxl:preview 47/49] csky-linux-ld: port.c:undefined reference to `cxl_region_init'
From: kernel test robot
Date: Thu Jun 23 2022 - 09:32:14 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
commit: feed7426434db705269ed645f6380e4e2784a77d [47/49] cxl/region: Add region driver boiler plate
config: csky-randconfig-r002-20220622 (https://download.01.org/0day-ci/archive/20220623/202206232108.duHMmFSt-lkp@xxxxxxxxx/config)
compiler: csky-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=feed7426434db705269ed645f6380e4e2784a77d
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout feed7426434db705269ed645f6380e4e2784a77d
# 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=csky SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
csky-linux-ld: drivers/cxl/core/port.o: in function `cxl_device_id':
port.c:(.text+0xc0): undefined reference to `cxl_region_type'
csky-linux-ld: drivers/cxl/core/port.o: in function `cxld_unregister':
port.c:(.text+0x51a): undefined reference to `cxl_region_detach'
csky-linux-ld: port.c:(.text+0x548): undefined reference to `cxl_region_rwsem'
csky-linux-ld: port.c:(.text+0x550): undefined reference to `cxl_region_detach'
csky-linux-ld: drivers/cxl/core/port.o: in function `cxl_core_exit':
port.c:(.text+0x5ba): undefined reference to `cxl_region_exit'
csky-linux-ld: drivers/cxl/core/port.o: in function `lockdep_init_map_waits.constprop.0':
port.c:(.text+0x6bc): undefined reference to `cxl_region_exit'
csky-linux-ld: drivers/cxl/core/port.o: in function `is_switch_decoder':
port.c:(.text+0xed0): undefined reference to `dev_attr_create_pmem_region'
csky-linux-ld: port.c:(.text+0xed4): undefined reference to `dev_attr_delete_region'
csky-linux-ld: drivers/cxl/core/port.o: in function `region_show':
port.c:(.text+0xf9c): undefined reference to `cxl_region_rwsem'
csky-linux-ld: drivers/cxl/core/port.o:(.data+0x1a0): undefined reference to `dev_attr_create_pmem_region'
csky-linux-ld: drivers/cxl/core/port.o:(.data+0x1a4): undefined reference to `dev_attr_delete_region'
csky-linux-ld: drivers/cxl/core/port.o: in function `cxl_core_init':
port.c:(.init.text+0x32): undefined reference to `cxl_region_init'
>> csky-linux-ld: port.c:(.init.text+0x78): undefined reference to `cxl_region_init'
--
0-DAY CI Kernel Test Service
https://01.org/lkp