riscv64-linux-ld: ttm_bo_vm.c:undefined reference to `vmf_insert_pfn_prot'

From: kernel test robot
Date: Sat Jun 18 2022 - 18:23:46 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b35035bcf80ddb47c0112c4fbd84a63a2836a18
commit: 8bb31587820a6e04cb613b49238b1800d1a97223 drm/ttm: remove bo->moving
date: 2 months ago
config: riscv-buildonly-randconfig-r006-20220619 (https://download.01.org/0day-ci/archive/20220619/202206190651.smtms3Ay-lkp@xxxxxxxxx/config)
compiler: riscv64-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/torvalds/linux.git/commit/?id=8bb31587820a6e04cb613b49238b1800d1a97223
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8bb31587820a6e04cb613b49238b1800d1a97223
# 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=riscv 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 >>):

riscv64-linux-ld: riscv64-linux-ld: DWARF error: could not find abbrev number 3991
drivers/gpu/drm/ttm/ttm_bo_vm.o: in function `.L0 ':
ttm_bo_vm.c:(.text+0x656): undefined reference to `vmf_insert_pfn_prot'
>> riscv64-linux-ld: ttm_bo_vm.c:(.text+0x7ce): undefined reference to `vmf_insert_pfn_prot'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_TTM
Depends on HAS_IOMEM && DRM && MMU
Selected by
- DRM_TTM_HELPER && HAS_IOMEM && DRM
- DRM_HISI_HIBMC && HAS_IOMEM && DRM && PCI && (ARM64 || COMPILE_TEST

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