]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/speculation: Remove SPECTRE_V2_IBRS in enum spectre_v2_mitigation
authorJiang Biao <jiang.biao2@zte.com.cn>
Wed, 18 Jul 2018 00:03:14 +0000 (08:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:45:09 +0000 (19:45 +0200)
commit d9f4426c73002957be5dd39936f44a09498f7560 upstream.

SPECTRE_V2_IBRS in enum spectre_v2_mitigation is never used. Remove it.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Cc: dwmw2@amazon.co.uk
Cc: konrad.wilk@oracle.com
Cc: bp@suse.de
Cc: zhong.weidong@zte.com.cn
Link: https://lkml.kernel.org/r/1531872194-39207-1-git-send-email-jiang.biao2@zte.com.cn
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/nospec-branch.h

index 6668b9dc72e48eeb912e5ca2238a9633a2723550..d04bb89cf3fec38f8a5ae077dd7fc54f742e7754 100644 (file)
@@ -169,7 +169,6 @@ enum spectre_v2_mitigation {
        SPECTRE_V2_RETPOLINE_MINIMAL_AMD,
        SPECTRE_V2_RETPOLINE_GENERIC,
        SPECTRE_V2_RETPOLINE_AMD,
-       SPECTRE_V2_IBRS,
        SPECTRE_V2_IBRS_ENHANCED,
 };