[intel-tdx:guest 90/110] kaslr.c:undefined reference to `amd_prot_guest_has'

From: kernel test robot
Date: Mon Aug 09 2021 - 23:58:28 EST


tree: https://github.com/intel/tdx.git guest
head: e7490da06ee4b49b02a0b8c0580a068539264044
commit: 52196bf062003d2f8073cbc0998f4a248d9e29a7 [90/110] x86/tdx: Make RDRAND/RDSEED loop forever
config: x86_64-randconfig-a006-20210809 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/52196bf062003d2f8073cbc0998f4a248d9e29a7
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 52196bf062003d2f8073cbc0998f4a248d9e29a7
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 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 >>):

ld: arch/x86/boot/compressed/kaslr.o: in function `kaslr_get_random_long':
>> kaslr.c:(.text+0x2ec): undefined reference to `amd_prot_guest_has'
ld: arch/x86/boot/compressed/vmlinux: hidden symbol `amd_prot_guest_has' isn't defined
ld: final link failed: bad value

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

Attachment: .config.gz
Description: application/gzip