Skip to content

Commit

Permalink
fix undefined symbol of cc_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yamahata authored and fidencio committed Jan 23, 2023
1 parent 6be482b commit c74ce46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ config SCHED_OMIT_FRAME_POINTER

menuconfig HYPERVISOR_GUEST
bool "Linux guest support"
select ARCH_HAS_CC_PLATFORM
help
Say Y here to enable options for running Linux under various hyper-
visors. This option enables basic hypervisor detection and platform
Expand Down

0 comments on commit c74ce46

Please sign in to comment.