From 97b80c7881b36ddb13e535d4e9af0eef2e7f24ec Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 2 Mar 2022 09:28:51 +0100 Subject: [PATCH] x86/altcall: silence undue warning 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 Reviewed-by: Andrew Cooper --- xen/arch/x86/alternative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/alternative.c b/xen/arch/x86/alternative.c index e19dfc6b36..d41eeef1bc 100644 --- a/xen/arch/x86/alternative.c +++ b/xen/arch/x86/alternative.c @@ -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; -- 2.39.5