[intel-tdx:guest-attest 4/6] ebda.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
From: kernel test robot
Date: Mon Jul 25 2022 - 00:42:51 EST
tree: https://github.com/intel/tdx.git guest-attest
head: 79bafa5b3cf70766a5a52e4338aa3ed9bc94205f
commit: e0fa61c75620a8b0c0eaf08cefd4023afcf78c8d [4/6] x86/coco: Add cc_decrypted_alloc/free() interfaces
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220725/202207251242.ga7J0oaX-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/e0fa61c75620a8b0c0eaf08cefd4023afcf78c8d
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-attest
git checkout e0fa61c75620a8b0c0eaf08cefd4023afcf78c8d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/ebda.o: in function `cc_decrypted_alloc':
>> ebda.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/kernel/ebda.o: in function `cc_decrypted_free':
>> ebda.c:(.text+0x3): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: init/main.o: in function `cc_decrypted_alloc':
main.c:(.text+0x794): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: init/main.o: in function `cc_decrypted_free':
main.c:(.text+0x79c): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: init/do_mounts.o: in function `cc_decrypted_alloc':
do_mounts.c:(.text+0x19d): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: init/do_mounts.o: in function `cc_decrypted_free':
do_mounts.c:(.text+0x1a5): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: init/do_mounts_initrd.o: in function `cc_decrypted_alloc':
do_mounts_initrd.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: init/do_mounts_initrd.o: in function `cc_decrypted_free':
do_mounts_initrd.c:(.text+0x8): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: init/initramfs.o: in function `cc_decrypted_alloc':
initramfs.c:(.text+0x55): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: init/initramfs.o: in function `cc_decrypted_free':
initramfs.c:(.text+0x5d): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: init/init_task.o: in function `cc_decrypted_alloc':
init_task.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: init/init_task.o: in function `cc_decrypted_free':
init_task.c:(.text+0x8): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/entry/syscall_64.o: in function `cc_decrypted_free':
syscall_64.c:(.text+0x3): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/entry/syscall_64.o: in function `cc_decrypted_alloc':
syscall_64.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/entry/common.o: in function `cc_decrypted_free':
common.c:(.text+0x3): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/entry/common.o: in function `cc_decrypted_alloc':
common.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/entry/vdso/vma.o: in function `cc_decrypted_alloc':
vma.c:(.text+0x2cc): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/entry/vdso/vma.o: in function `cc_decrypted_free':
vma.c:(.text+0x2cf): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/entry/vdso/extable.o: in function `cc_decrypted_alloc':
extable.c:(.text+0x0): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/entry/vdso/extable.o: in function `cc_decrypted_free':
extable.c:(.text+0x3): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/entry/vsyscall/vsyscall_64.o: in function `cc_decrypted_alloc':
vsyscall_64.c:(.text+0x318): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/entry/vsyscall/vsyscall_64.o: in function `cc_decrypted_free':
vsyscall_64.c:(.text+0x320): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/core.o: in function `cc_decrypted_alloc':
core.c:(.text+0x178e): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/core.o: in function `cc_decrypted_free':
core.c:(.text+0x1796): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/rapl.o: in function `cc_decrypted_alloc':
rapl.c:(.text+0x73a): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/rapl.o: in function `cc_decrypted_free':
rapl.c:(.text+0x742): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/amd/core.o: in function `cc_decrypted_alloc':
core.c:(.text+0x1243): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/amd/core.o: in function `cc_decrypted_free':
core.c:(.text+0x124b): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/amd/ibs.o: in function `cc_decrypted_alloc':
ibs.c:(.text+0x102e): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/amd/ibs.o: in function `cc_decrypted_free':
ibs.c:(.text+0x1036): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/msr.o: in function `cc_decrypted_alloc':
msr.c:(.text+0x37e): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/msr.o: in function `cc_decrypted_free':
msr.c:(.text+0x386): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/core.o: in function `cc_decrypted_alloc':
core.c:(.text+0x3286): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/core.o: in function `cc_decrypted_free':
core.c:(.text+0x328e): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/bts.o: in function `cc_decrypted_alloc':
bts.c:(.text+0xafd): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/bts.o: in function `cc_decrypted_free':
bts.c:(.text+0xb05): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/ds.o: in function `cc_decrypted_alloc':
ds.c:(.text+0x23c6): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/ds.o: in function `cc_decrypted_free':
ds.c:(.text+0x23ce): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/knc.o: in function `cc_decrypted_alloc':
knc.c:(.text+0x43a): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/knc.o: in function `cc_decrypted_free':
knc.c:(.text+0x442): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/lbr.o: in function `cc_decrypted_alloc':
lbr.c:(.text+0xdcd): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/lbr.o: in function `cc_decrypted_free':
lbr.c:(.text+0xdd5): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/p4.o: in function `cc_decrypted_alloc':
p4.c:(.text+0xa94): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/p4.o: in function `cc_decrypted_free':
p4.c:(.text+0xa9c): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/p6.o: in function `cc_decrypted_alloc':
p6.c:(.text+0x232): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/p6.o: in function `cc_decrypted_free':
p6.c:(.text+0x23a): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/pt.o: in function `cc_decrypted_alloc':
pt.c:(.text+0x2321): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/pt.o: in function `cc_decrypted_free':
pt.c:(.text+0x2329): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/uncore.o: in function `cc_decrypted_alloc':
uncore.c:(.text+0x112c): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/uncore.o: in function `cc_decrypted_free':
uncore.c:(.text+0x1134): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
ld: arch/x86/events/intel/uncore_nhmex.o: in function `cc_decrypted_alloc':
uncore_nhmex.c:(.text+0x1a2e): multiple definition of `cc_decrypted_alloc'; arch/x86/kernel/head64.o:head64.c:(.text+0x0): first defined here
ld: arch/x86/events/intel/uncore_nhmex.o: in function `cc_decrypted_free':
uncore_nhmex.c:(.text+0x1a36): multiple definition of `cc_decrypted_free'; arch/x86/kernel/head64.o:head64.c:(.text+0x3): first defined here
--
0-DAY CI Kernel Test Service
https://01.org/lkp