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)
commit97b80c7881b36ddb13e535d4e9af0eef2e7f24ec
tree8e9f0d88c7651769e83c0f70acbf691685d532a6
parentda5827fff31c401132879130398a974a18befacb
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/alternative.c