Messages in this thread Patch in this message |  | | Date | Wed, 21 May 2025 17:28:34 +0200 | | From | Borislav Petkov <> | | Subject | Re: [PATCH v5 02/20] cpu: Define attack vectors |
| |
On Fri, May 09, 2025 at 11:28:21AM -0500, David Kaplan wrote: > +#define smt_mitigations SMT_MITIGATIONS_OFF
Oh fun.
Let's make that explicit before someone goes and shuffles the enums:
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 4da2ee8d9144..fdf552fd8a8b 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -203,7 +203,7 @@ enum cpu_attack_vectors { }; enum smt_mitigations { - SMT_MITIGATIONS_OFF, + SMT_MITIGATIONS_OFF = 0, SMT_MITIGATIONS_AUTO, SMT_MITIGATIONS_ON, }; -- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
|  |