[intel-tdx:kvm-upstream 73/152] arch/x86/kvm/vmx/main.c:25:14: error: expression is not assignable

From: kernel test robot
Date: Fri Dec 17 2021 - 17:15:22 EST


tree: https://github.com/intel/tdx.git kvm-upstream
head: bdfe06c17daab60c196ff80c1d98467a1d3734fa
commit: 3545bcde2d72e4b5b5f16571788aac0ddb5f49a5 [73/152] KVM: TDX: Add KVM TDX system-wide initialization and teardown
config: x86_64-randconfig-a013-20211216 (https://download.01.org/0day-ci/archive/20211218/202112180628.1QbsHNOz-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dd245bab9fbb364faa1581e4f92ba3119a872fba)
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://github.com/intel/tdx/commit/3545bcde2d72e4b5b5f16571788aac0ddb5f49a5
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream
git checkout 3545bcde2d72e4b5b5f16571788aac0ddb5f49a5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):

>> arch/x86/kvm/vmx/main.c:25:14: error: expression is not assignable
enable_tdx = false;
~~~~~~~~~~ ^
1 error generated.


vim +25 arch/x86/kvm/vmx/main.c

15
16 static __init int vt_hardware_setup(void)
17 {
18 int ret;
19
20 ret = vmx_hardware_setup();
21 if (ret)
22 return ret;
23
24 if (enable_tdx && tdx_hardware_setup(&vt_x86_ops))
> 25 enable_tdx = false;
26 return 0;
27 }
28

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