]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86/alternative: Clean up headers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Apr 2025 15:31:17 +0000 (16:31 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 14:47:48 +0000 (15:47 +0100)
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 <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/include/asm/alternative.h

index 38472fb58e2da4e782419f24b99cdccccef00991..7326ad942836e42f40c85b494d6d55c21370b83b 100644 (file)
@@ -4,8 +4,10 @@
 #ifdef __ASSEMBLY__
 #include <asm/alternative-asm.h>
 #else
-#include <xen/lib.h>
-#include <xen/stringify.h>
+
+#include <xen/macros.h>
+#include <xen/types.h>
+
 #include <asm/asm-macros.h>
 #include <asm/cpufeatureset.h>
 
@@ -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     */ \