]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86/altcall: silence undue warning
authorJan Beulich <jbeulich@suse.com>
Wed, 2 Mar 2022 08:28:51 +0000 (09:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 2 Mar 2022 08:28:51 +0000 (09:28 +0100)
Suitable compiler options are passed only when the actual feature
(XEN_IBT) is enabled, not when merely the compiler capability was found
to be available.

Fixes: 12e3410e071e ("x86/altcall: Check and optimise altcall targets")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/alternative.c

index e19dfc6b36626efb6a902fa55871b1422a964cce..d41eeef1bcafbd39a88475e51ab6aaa1f2c74374 100644 (file)
@@ -295,7 +295,7 @@ static void init_or_livepatch _apply_alternatives(struct alt_instr *start,
                      * marginal perf improvement which saves on instruction
                      * decode bandwidth.
                      */
-                    if ( IS_ENABLED(CONFIG_HAS_CC_CET_IBT) )
+                    if ( IS_ENABLED(CONFIG_XEN_IBT) )
                     {
                         if ( is_endbr64(dest) )
                             dest += ENDBR64_LEN;