[cxl:preview 49/49] powerpc-linux-ld: pmem.c:undefined reference to `cxl_region_rwsem'

From: kernel test robot
Date: Thu Jun 23 2022 - 09:32:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
commit: b2d4fd5c97b59f622e6c45ac51020cdcd66bb022 [49/49] cxl/region: Introduce cxl_pmem_region objects
config: powerpc-randconfig-r031-20220622 (https://download.01.org/0day-ci/archive/20220623/202206232128.Jkbxz0ZU-lkp@xxxxxxxxx/config)
compiler: powerpc-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=b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
# 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=powerpc 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 >>):

powerpc-linux-ld: drivers/cxl/core/port.o: in function `modalias_show':
port.c:(.text+0x156): undefined reference to `cxl_region_type'
powerpc-linux-ld: port.c:(.text+0x15e): undefined reference to `cxl_region_type'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_root_decoder_visible':
port.c:(.text+0x1e6): undefined reference to `dev_attr_create_pmem_region'
powerpc-linux-ld: port.c:(.text+0x1ea): undefined reference to `dev_attr_create_pmem_region'
powerpc-linux-ld: port.c:(.text+0x1fa): undefined reference to `dev_attr_delete_region'
powerpc-linux-ld: port.c:(.text+0x1fe): undefined reference to `dev_attr_delete_region'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxld_unregister':
port.c:(.text+0x9ea): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: port.c:(.text+0x9f2): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: port.c:(.text+0xa0c): undefined reference to `cxl_region_detach'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_core_exit':
port.c:(.text+0xad0): undefined reference to `cxl_region_exit'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_bus_match':
port.c:(.text+0x1196): undefined reference to `cxl_region_type'
powerpc-linux-ld: port.c:(.text+0x119e): undefined reference to `cxl_region_type'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_bus_uevent':
port.c:(.text+0x12d6): undefined reference to `cxl_region_type'
powerpc-linux-ld: port.c:(.text+0x12de): undefined reference to `cxl_region_type'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `region_show':
port.c:(.text+0x1d4a): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: port.c:(.text+0x1d4e): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_decoder_autoremove':
port.c:(.text+0x3a4e): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: port.c:(.text+0x3a52): undefined reference to `cxl_region_rwsem'
powerpc-linux-ld: port.c:(.text+0x3a68): undefined reference to `cxl_region_detach'
powerpc-linux-ld: drivers/cxl/core/port.o:(.data+0x130): undefined reference to `dev_attr_create_pmem_region'
powerpc-linux-ld: drivers/cxl/core/port.o:(.data+0x134): undefined reference to `dev_attr_delete_region'
powerpc-linux-ld: drivers/cxl/core/port.o: in function `cxl_core_init':
port.c:(.init.text+0x78): undefined reference to `cxl_region_init'
powerpc-linux-ld: drivers/cxl/core/pmem.o: in function `devm_cxl_add_pmem_region':
pmem.c:(.text+0x60e): undefined reference to `cxl_region_rwsem'
>> powerpc-linux-ld: pmem.c:(.text+0x612): undefined reference to `cxl_region_rwsem'

--
0-DAY CI Kernel Test Service
https://01.org/lkp