Re: [PATCH] x86/extable: include asm/processor.h for cpu_relax()

From: Borislav Petkov
Date: Fri Apr 18 2025 - 08:12:36 EST


On Fri, Apr 18, 2025 at 11:57:00AM +0000, Dmytro Maluka wrote:
> Include asm/processor.h to prevents compilation failures due to implicit
> declaration of cpu_relax() in ex_handler_msr_mce() when compiling with
> CONFIG_X86_MCE disabled.

Builds fine here:

$ grep X86_MCE .config
# CONFIG_X86_MCE is not set

$ make -j...
...

OBJCOPY arch/x86/boot/setup.bin
BUILD arch/x86/boot/bzImage
Kernel: arch/x86/boot/bzImage is ready (#1)
$

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette