From: Andrew Cooper Date: Mon, 30 Sep 2019 17:25:21 +0000 (+0100) Subject: x86/nospec: Two trivial fixes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dc2aaafe9e3c044bea71aa4575cb4524b3d950db;p=people%2Froyger%2Fxen.git x86/nospec: Two trivial fixes The include of asm/cpuid.h in spec_ctrl.c was an artefact of an older version of c/s 3860d5534df, and is not used in its current incarnation. Fix a typo in a comment. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich Release-acked-by: Juergen Gross --- diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index 731d5a767b..ee5439a371 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -21,7 +21,6 @@ #include #include -#include #include #include #include diff --git a/xen/include/asm-x86/nospec.h b/xen/include/asm-x86/nospec.h index 2aa47b3455..427b5ff9df 100644 --- a/xen/include/asm-x86/nospec.h +++ b/xen/include/asm-x86/nospec.h @@ -15,7 +15,7 @@ static always_inline bool barrier_nospec_true(void) return true; } -/* Allow to protect evaluation of conditionasl with respect to speculation */ +/* Allow to protect evaluation of conditionals with respect to speculation */ static always_inline bool evaluate_nospec(bool condition) { return condition ? barrier_nospec_true() : !barrier_nospec_true();