* arch/x86/kernel/cpu/microcode/hygon.c:343:42: error: use of undeclared identifier 'hypervisor_present'; did you mean 'x86_hypervisor_present'?
@ 2026-06-16 0:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-16 0:22 UTC (permalink / raw)
To: Fu Hao; +Cc: llvm, oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Fu-Hao/x86-cpu-hygon-Adjust-the-die_id-and-logical_die_id-for-Hygon-models-0x4-through-0x8/20260615-203418
head: 1d23a5cab2f87c46644839ad70174c6dec28882d
commit: f0def51fc06432aa3420f72e2d81e82892868813 x86/microcode/hygon: Add microcode loading support for Hygon processors
date: 12 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260616/202606160254.dKPf3HDp-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project f43d6834093b19baf79beda8c0337ab020ac5f17)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260616/202606160254.dKPf3HDp-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606160254.dKPf3HDp-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kernel/cpu/microcode/hygon.c:343:42: error: use of undeclared identifier 'hypervisor_present'; did you mean 'x86_hypervisor_present'?
343 | if (IS_ENABLED(CONFIG_MICROCODE_DBG) && hypervisor_present)
| ^~~~~~~~~~~~~~~~~~
| x86_hypervisor_present
arch/x86/include/asm/processor.h:736:13: note: 'x86_hypervisor_present' declared here
736 | extern bool x86_hypervisor_present;
| ^
1 error generated.
vim +343 arch/x86/kernel/cpu/microcode/hygon.c
327
328 static bool apply_hygon_patch(struct hygon_microcode *mc, u32 *cur_rev,
329 unsigned int patch_size)
330 {
331 unsigned long patch_start = (unsigned long)&mc->header.data;
332 unsigned long patch_end = patch_start + patch_size - 1;
333
334 native_wrmsrq(HYGON_MSR_PATCH_LOADER, patch_start);
335 invlpg(patch_start);
336
337 /*
338 * Invalidate the next page if the patch image crosses a page boundary.
339 */
340 if (hygon_pages_crossed(patch_start, patch_size))
341 invlpg(patch_end);
342
> 343 if (IS_ENABLED(CONFIG_MICROCODE_DBG) && hypervisor_present)
344 microcode_rev[smp_processor_id()] = mc->header.patch_level;
345
346 *cur_rev = get_current_patch_level();
347
348 ucode_dbg("updated rev: 0x%x\n", *cur_rev);
349
350 return *cur_rev == mc->header.patch_level;
351 }
352
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-16 0:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-16 0:22 arch/x86/kernel/cpu/microcode/hygon.c:343:42: error: use of undeclared identifier 'hypervisor_present'; did you mean 'x86_hypervisor_present'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox