[csky-linux:riscv_compat_v6_sv48_xtpbmt 22/22] errata.c:undefined reference to `protection_map'

From: kernel test robot
Date: Mon Feb 07 2022 - 08:10:37 EST


tree: https://github.com/c-sky/csky-linux riscv_compat_v6_sv48_xtpbmt
head: 660358cf7b5b9fda72e619f37efe4c68af19dccb
commit: 660358cf7b5b9fda72e619f37efe4c68af19dccb [22/22] riscv: errata: pgtable: Add custom Svpbmt supported for Allwinner D1
config: riscv-nommu_virt_defconfig (https://download.01.org/0day-ci/archive/20220207/202202072027.HVj3XQyw-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.2.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/c-sky/csky-linux/commit/660358cf7b5b9fda72e619f37efe4c68af19dccb
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux riscv_compat_v6_sv48_xtpbmt
git checkout 660358cf7b5b9fda72e619f37efe4c68af19dccb
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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/errata/thead/errata.o: in function `.L0 ':
>> errata.c:(.init.text+0x28): undefined reference to `protection_map'
>> riscv64-linux-ld: errata.c:(.init.text+0x30): undefined reference to `protection_map'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx