Skip to content

Commit c74ce46

Browse files
yamahatafidencio
authored andcommitted
fix undefined symbol of cc_init
This patch fixes the following error. > arch/x86/kernel/cpu/mshyperv.c:349: undefined reference to `cc_init' CONFIG_GUEST_HYPERVISOR compiles mshyperv.o that reference cc_init(). cc_init() requires CONFIG_ARCH_HAS_CC_PLATFORM. "select ARCH_HAS_CC_PLATFORM" when CONFIG_GUEST_HYPERVISOR=y. Fixes: cbb5c73599cf ("x86/coco: Add API to handle encryption mask") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
1 parent 6be482b commit c74ce46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ config SCHED_OMIT_FRAME_POINTER
756756

757757
menuconfig HYPERVISOR_GUEST
758758
bool "Linux guest support"
759+
select ARCH_HAS_CC_PLATFORM
759760
help
760761
Say Y here to enable options for running Linux under various hyper-
761762
visors. This option enables basic hypervisor detection and platform

0 commit comments

Comments
 (0)