x86/headers: Replace __ASSEMBLY__ stragglers with __ASSEMBLER__
Subsystems (2)
PATCH 1/1 x86/headers: Replace __ASSEMBLY__ stragglers with __ASSEMBLER__
From: Thomas Huth <[email protected]>
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 <[email protected]>
--- arch/x86/include/asm/irqflags.h | 4 ++-- arch/x86/include/asm/percpu.h | 2 +- arch/x86/include/asm/runtime-const.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
arch/x86/include/asm/irqflags.h +2 -2
@@ -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
arch/x86/include/asm/percpu.h +1 -1
@@ -20,7 +20,7 @@#define PER_CPU_VAR (var) __percpu(var)__percpu_rel -#else /* !__ASSEMBLY__: */ +#else /* !__ASSEMBLER__: */ #include <linux/args.h> #include <linux/build_bug.h>
arch/x86/include/asm/runtime-const.h +3 -3
@@ -2,7 +2,7 @@#ifndef _ASM_RUNTIME_CONST_H#define _ASM_RUNTIME_CONST_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro RUNTIME_CONST_PTR sym reg movq $0x0123456789abcdef, %\reg
@@ -12,7 +12,7 @@ .popsection .endm -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ #define runtime_const_ptr (sym) ({ \ typeof(sym) __ret; \
@@ -70,5 +70,5 @@ static inline void runtime_const_fixup(void (*fn)(void *, unsigned long), } } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
Signature · 1 line
2.50.1