[ammarfaizi2-block:palmer/linux/riscv-compat 20/20] riscv64-linux-ld: arch/riscv/kernel/compat_syscall_table.o:undefined reference to `compat_sys_fadvise64_64'

From: kernel test robot
Date: Thu May 19 2022 - 23:29:02 EST


tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-compat
head: 9be8459298eadb39b9fe9974b890239e9c123107
commit: 9be8459298eadb39b9fe9974b890239e9c123107 [20/20] riscv: compat: Add COMPAT Kbuild skeletal support
config: riscv-randconfig-r004-20220519 (https://download.01.org/0day-ci/archive/20220520/202205201131.BsQlHAIj-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://github.com/ammarfaizi2/linux-block/commit/9be8459298eadb39b9fe9974b890239e9c123107
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-compat
git checkout 9be8459298eadb39b9fe9974b890239e9c123107
# 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 as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> riscv64-linux-ld: arch/riscv/kernel/compat_syscall_table.o:(.rodata+0x6f8): undefined reference to `compat_sys_fadvise64_64'
pahole: .tmp_vmlinux.btf: No such file or directory
.btf.vmlinux.bin.o: file not recognized: file format not recognized

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