]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/headers: Replace __ASSEMBLY__ stragglers with __ASSEMBLER__
authorThomas Huth <thuth@redhat.com>
Thu, 18 Dec 2025 18:20:29 +0000 (19:20 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 23 Feb 2026 10:19:12 +0000 (11:19 +0100)
After converting the __ASSEMBLY__ statements to __ASSEMBLER__ in
commit 24a295e4ef1ca ("x86/headers: Replace __ASSEMBLY__ with
__ASSEMBLER__ in non-UAPI headers"), some new code has been
added that uses __ASSEMBLY__ again. Convert these stragglers, too.

This is a mechanical patch, done with a simple "sed -i" command.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251218182029.166993-1-thuth@redhat.com
arch/x86/include/asm/bug.h
arch/x86/include/asm/irqflags.h
arch/x86/include/asm/percpu.h
arch/x86/include/asm/runtime-const.h

index 9b4e04690e1a2336cbfadd37a5a89c375236ad2d..80c1696d8d5978df2f6663cb56cc59687530caf6 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/objtool.h>
 #include <asm/asm.h>
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 struct bug_entry;
 extern void __WARN_trap(struct bug_entry *bug, ...);
 #endif
@@ -137,7 +137,7 @@ do {                                                                        \
 
 #ifdef HAVE_ARCH_BUG_FORMAT_ARGS
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 #include <linux/static_call_types.h>
 DECLARE_STATIC_CALL(WARN_trap, __WARN_trap);
 
@@ -153,7 +153,7 @@ struct arch_va_list {
        struct sysv_va_list args;
 };
 extern void *__warn_args(struct arch_va_list *args, struct pt_regs *regs);
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #define __WARN_bug_entry(flags, format) ({                             \
        struct bug_entry *bug;                                          \
index a1193e9d65f2000d6de88468bee58f2dae9c6cd5..462754b0bf8ac1dcee7e7e63153f3fefbcb324d9 100644 (file)
@@ -77,7 +77,7 @@ static __always_inline void native_local_irq_restore(unsigned long flags)
 #endif
 
 #ifndef CONFIG_PARAVIRT
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 /*
  * Used in the idle loop; sti takes one instruction cycle
  * to complete:
@@ -95,7 +95,7 @@ static __always_inline void halt(void)
 {
        native_halt();
 }
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 #endif /* CONFIG_PARAVIRT */
 
 #ifdef CONFIG_PARAVIRT_XXL
index c55058f3d75e889365683273697435e014b57808..409981468cba28700fcf8797f7666ba7c4c24d19 100644 (file)
@@ -20,7 +20,7 @@
 
 #define PER_CPU_VAR(var)       __percpu(var)__percpu_rel
 
-#else /* !__ASSEMBLY__: */
+#else /* !__ASSEMBLER__: */
 
 #include <linux/args.h>
 #include <linux/bits.h>
index e5a13dc8816e2b312aa67147739648901e897bb4..4cd94fdcb45e2c30acd344957caa5077e04b25b3 100644 (file)
@@ -6,7 +6,7 @@
   #error "Cannot use runtime-const infrastructure from modules"
 #endif
 
-#ifdef __ASSEMBLY__
+#ifdef __ASSEMBLER__
 
 .macro RUNTIME_CONST_PTR sym reg
        movq    $0x0123456789abcdef, %\reg
@@ -16,7 +16,7 @@
        .popsection
 .endm
 
-#else /* __ASSEMBLY__ */
+#else /* __ASSEMBLER__ */
 
 #define runtime_const_ptr(sym) ({                              \
        typeof(sym) __ret;                                      \
@@ -74,5 +74,5 @@ static inline void runtime_const_fixup(void (*fn)(void *, unsigned long),
        }
 }
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 #endif