Skip to content

Commit 237dc6a

Browse files
huthPeter Zijlstra
authored andcommitted
x86/headers: Replace __ASSEMBLY__ stragglers with __ASSEMBLER__
After converting the __ASSEMBLY__ statements to __ASSEMBLER__ in commit 24a295e ("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
1 parent 24c8147 commit 237dc6a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

arch/x86/include/asm/bug.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/objtool.h>
88
#include <asm/asm.h>
99

10-
#ifndef __ASSEMBLY__
10+
#ifndef __ASSEMBLER__
1111
struct bug_entry;
1212
extern void __WARN_trap(struct bug_entry *bug, ...);
1313
#endif
@@ -137,7 +137,7 @@ do { \
137137

138138
#ifdef HAVE_ARCH_BUG_FORMAT_ARGS
139139

140-
#ifndef __ASSEMBLY__
140+
#ifndef __ASSEMBLER__
141141
#include <linux/static_call_types.h>
142142
DECLARE_STATIC_CALL(WARN_trap, __WARN_trap);
143143

@@ -153,7 +153,7 @@ struct arch_va_list {
153153
struct sysv_va_list args;
154154
};
155155
extern void *__warn_args(struct arch_va_list *args, struct pt_regs *regs);
156-
#endif /* __ASSEMBLY__ */
156+
#endif /* __ASSEMBLER__ */
157157

158158
#define __WARN_bug_entry(flags, format) ({ \
159159
struct bug_entry *bug; \

arch/x86/include/asm/irqflags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static __always_inline void native_local_irq_restore(unsigned long flags)
7777
#endif
7878

7979
#ifndef CONFIG_PARAVIRT
80-
#ifndef __ASSEMBLY__
80+
#ifndef __ASSEMBLER__
8181
/*
8282
* Used in the idle loop; sti takes one instruction cycle
8383
* to complete:
@@ -95,7 +95,7 @@ static __always_inline void halt(void)
9595
{
9696
native_halt();
9797
}
98-
#endif /* __ASSEMBLY__ */
98+
#endif /* __ASSEMBLER__ */
9999
#endif /* CONFIG_PARAVIRT */
100100

101101
#ifdef CONFIG_PARAVIRT_XXL

arch/x86/include/asm/percpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define PER_CPU_VAR(var) __percpu(var)__percpu_rel
2222

23-
#else /* !__ASSEMBLY__: */
23+
#else /* !__ASSEMBLER__: */
2424

2525
#include <linux/args.h>
2626
#include <linux/bits.h>

arch/x86/include/asm/runtime-const.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#error "Cannot use runtime-const infrastructure from modules"
77
#endif
88

9-
#ifdef __ASSEMBLY__
9+
#ifdef __ASSEMBLER__
1010

1111
.macro RUNTIME_CONST_PTR sym reg
1212
movq $0x0123456789abcdef, %\reg
@@ -16,7 +16,7 @@
1616
.popsection
1717
.endm
1818

19-
#else /* __ASSEMBLY__ */
19+
#else /* __ASSEMBLER__ */
2020

2121
#define runtime_const_ptr(sym) ({ \
2222
typeof(sym) __ret; \
@@ -74,5 +74,5 @@ static inline void runtime_const_fixup(void (*fn)(void *, unsigned long),
7474
}
7575
}
7676

77-
#endif /* __ASSEMBLY__ */
77+
#endif /* __ASSEMBLER__ */
7878
#endif

0 commit comments

Comments
 (0)