Hi Alexey,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/x86/vmware]
[also build test ERROR on linus/master v6.11-rc3 next-20240815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Alexey-Makhalov/x86-vmware-Fix-steal-time-clock-under-SEV/20240815-050918
base:   tip/x86/vmware
patch link:    
https://lore.kernel.org/r/20240814210731.761010-2-alexey.makhalov%40broadcom.com
patch subject: [PATCH 2/2] x86/vmware: Fix steal time clock under SEV
config: i386-randconfig-003-20240815 
(https://download.01.org/0day-ci/archive/20240815/202408151826.9369lzwv-...@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 
617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240815/202408151826.9369lzwv-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408151826.9369lzwv-...@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kernel/cpu/vmware.c:313:6: error: use of undeclared identifier 
>> 'cc_vendor'
     313 |         if (cc_vendor != CC_VENDOR_AMD ||
         |             ^
>> arch/x86/kernel/cpu/vmware.c:313:19: error: use of undeclared identifier 
>> 'CC_VENDOR_AMD'
     313 |         if (cc_vendor != CC_VENDOR_AMD ||
         |                          ^
   2 errors generated.


vim +/cc_vendor +313 arch/x86/kernel/cpu/vmware.c

   308  
   309  static void __init sev_map_percpu_data(void)
   310  {
   311          int cpu;
   312  
 > 313          if (cc_vendor != CC_VENDOR_AMD ||
   314              !cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT))
   315                  return;
   316  
   317          for_each_possible_cpu(cpu) {
   318                  early_set_memory_decrypted(
   319                          (unsigned long)&per_cpu(vmw_steal_time, cpu),
   320                          sizeof(vmw_steal_time));
   321          }
   322  }
   323  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to