tree:
git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git kvm-trng
head: ce24e6d7812bdc252275c33141fef8d8ec065b9c
commit: 34579a08c08ed8e3b352e31e1d5db7ba665e6db6 [6/8] arm64: random: use hyp entropy
under pkvm
config: arm64-randconfig-r002-20210323 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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/ardb/linux.git/commit/?id...
git remote add ardb
git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb kvm-trng
git checkout 34579a08c08ed8e3b352e31e1d5db7ba665e6db6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
aarch64-linux-ld: drivers/char/random.o: in function `crng_reseed.constprop.0':
> random.c:(.text+0x3ae0): undefined reference to
`kvm_protected_mode_initialized'
aarch64-linux-ld: drivers/char/random.o:
relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kvm_protected_mode_initialized'
which may bind externally can not be used when making a shared object; recompile with
-fPIC
random.c:(.text+0x3ae0): dangerous relocation: unsupported relocation
> aarch64-linux-ld: random.c:(.text+0x3af4): undefined reference to
`kvm_protected_mode_initialized'
aarch64-linux-ld: drivers/char/random.o: in
function `rand_initialize':
> random.c:(.init.text+0x6c): undefined reference to
`kvm_protected_mode_initialized'
aarch64-linux-ld: drivers/char/random.o:
relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kvm_protected_mode_initialized'
which may bind externally can not be used when making a shared object; recompile with
-fPIC
random.c:(.init.text+0x6c): dangerous relocation: unsupported relocation
> aarch64-linux-ld: random.c:(.init.text+0x74): undefined reference
to `kvm_protected_mode_initialized'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org