[arm-platforms:kvm-arm64/pkvm-flags 101/101] stacktrace.c:undefined reference to `kvm_arm_hyp_stacktrace_page'

kernel test robot lkp at intel.com
Thu Jun 16 16:38:54 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pkvm-flags
head:   c36fd521a7c62110d46d7453b37beae2eeec6422
commit: c36fd521a7c62110d46d7453b37beae2eeec6422 [101/101] KVM: arm64: Unwind and dump nVHE hypervisor stacktrace
config: arm64-buildonly-randconfig-r005-20220616 (https://download.01.org/0day-ci/archive/20220617/202206170726.lkJZJHUk-lkp@intel.com/config)
compiler: aarch64-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/maz/arm-platforms.git/commit/?id=c36fd521a7c62110d46d7453b37beae2eeec6422
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms kvm-arm64/pkvm-flags
        git checkout c36fd521a7c62110d46d7453b37beae2eeec6422
        # 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=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   aarch64-linux-ld: arch/arm64/kernel/stacktrace.o: in function `hyp_dump_backtrace':
>> stacktrace.c:(.text.unlikely+0x58): undefined reference to `kvm_arm_hyp_stacktrace_page'
   aarch64-linux-ld: arch/arm64/kernel/stacktrace.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kvm_arm_hyp_stacktrace_page' which may bind externally can not be used when making a shared object; recompile with -fPIC
   stacktrace.c:(.text.unlikely+0x58): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: stacktrace.c:(.text.unlikely+0x5c): undefined reference to `kvm_arm_hyp_stacktrace_page'

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



More information about the linux-arm-kernel mailing list