From 85663be75ece4835859403b5195c2d07dafca880 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Mon, 21 Apr 2025 16:31:17 +0100 Subject: [PATCH] x86/alternative: Clean up headers alternative.h doesn't need lib.h now that macros.h exists. Futhermore, STR() is already the prevailing style, so convert the final __stringify() to drop stringify.h too. No functional change. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- xen/arch/x86/include/asm/alternative.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/include/asm/alternative.h b/xen/arch/x86/include/asm/alternative.h index 38472fb58e..7326ad9428 100644 --- a/xen/arch/x86/include/asm/alternative.h +++ b/xen/arch/x86/include/asm/alternative.h @@ -4,8 +4,10 @@ #ifdef __ASSEMBLY__ #include #else -#include -#include + +#include +#include + #include #include @@ -65,7 +67,7 @@ extern void alternative_branches(void); " .endif\n" \ " .long .LXEN%=_orig_s - .\n" /* label */ \ " .long " alt_repl_s(num)" - .\n" /* new instruction */ \ - " .word " __stringify(feature) "\n" /* feature bit */ \ + " .word " STR(feature) "\n" /* feature bit */ \ " .byte " alt_orig_len "\n" /* source len */ \ " .byte " alt_repl_len(num) "\n" /* replacement len */ \ " .byte " alt_pad_len "\n" /* padding len */ \ -- 2.39.5