[arm-integrator:kernel-in-vmalloc-v5.19-rc1 28/33] fork.c:undefined reference to `virt_to_pfn'

From: kernel test robot
Date: Wed Jun 08 2022 - 14:55:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head: 512fc95a58c7b2e91e267db91a4ec5a54afedd01
commit: 851c5f699d64c4ed8f53c7a21fb5428bbd3a8d87 [28/33] riscv: Make virt_to_pfn() a real function
config: riscv-nommu_virt_defconfig (https://download.01.org/0day-ci/archive/20220609/202206090239.mJaQrFRX-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/linusw/linux-integrator.git/commit/?id=851c5f699d64c4ed8f53c7a21fb5428bbd3a8d87
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
git checkout 851c5f699d64c4ed8f53c7a21fb5428bbd3a8d87
# 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: init/main.o: in function `.L0 ':
main.c:(.init.text+0x97c): undefined reference to `virt_to_pfn'
riscv64-linux-ld: main.c:(.init.text+0x9ba): undefined reference to `virt_to_pfn'
riscv64-linux-ld: kernel/fork.o: in function `.L0 ':
>> fork.c:(.text+0x90): undefined reference to `virt_to_pfn'
riscv64-linux-ld: kernel/fork.o: in function `.L1':
fork.c:(.text+0x306): undefined reference to `virt_to_pfn'
riscv64-linux-ld: kernel/resource.o: in function `alloc_resource':
>> resource.c:(.text+0x544): undefined reference to `virt_to_pfn'
riscv64-linux-ld: mm/swap.o:swap.c:(.text+0xc90): more undefined references to `virt_to_pfn' follow

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