Re: [PATCH] x86/microcode: move @microcode_mutex definition near usage
From: Borislav Petkov
Date: Fri Mar 24 2023 - 08:00:35 EST
On Fri, Mar 24, 2023 at 11:47:20AM +0000, John Ogness wrote:
> If CONFIG_MICROCODE_LATE_LOADING is not enabled, the compiler warns:
>
> 'microcode_mutex' defined but not used
How do you trigger this? I haven't seen this until now in my builds and
CONFIG_MICROCODE_LATE_LOADING is not enabled here either in most
cases:
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
CONFIG_MICROCODE_AMD=y
# CONFIG_MICROCODE_LATE_LOADING is not set
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette