x86/bugs: Move enum taa_mitigations to bugs.c
authorBorislav Petkov <bp@suse.de>
Tue, 12 Nov 2019 20:58:57 +0000 (21:58 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 14 Dec 2019 15:06:33 +0000 (16:06 +0100)
... because it is used only there.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20191112221823.19677-1-bp@alien8.de
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/bugs.c

index 0340aad3f2fc21b2ee527635f5726c45cc3f62d0..7c071f86a058d1459f5f7ca4a882cb68f075b1ee 100644 (file)
@@ -1015,11 +1015,4 @@ enum mds_mitigations {
        MDS_MITIGATION_VMWERV,
 };
 
-enum taa_mitigations {
-       TAA_MITIGATION_OFF,
-       TAA_MITIGATION_UCODE_NEEDED,
-       TAA_MITIGATION_VERW,
-       TAA_MITIGATION_TSX_DISABLED,
-};
-
 #endif /* _ASM_X86_PROCESSOR_H */
index 8bf64899f56aeac7200db209ea378e520173fe1b..ed54b3b21c39610c7777f3389c0ec78e3a00d280 100644 (file)
@@ -286,6 +286,13 @@ early_param("mds", mds_cmdline);
 #undef pr_fmt
 #define pr_fmt(fmt)    "TAA: " fmt
 
+enum taa_mitigations {
+       TAA_MITIGATION_OFF,
+       TAA_MITIGATION_UCODE_NEEDED,
+       TAA_MITIGATION_VERW,
+       TAA_MITIGATION_TSX_DISABLED,
+};
+
 /* Default mitigation for TAA-affected CPUs */
 static enum taa_mitigations taa_mitigation __ro_after_init = TAA_MITIGATION_VERW;
 static bool taa_nosmt __ro_after_init;