]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/headers: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-UAPI headers
authorThomas Huth <thuth@redhat.com>
Wed, 19 Mar 2025 10:30:57 +0000 (11:30 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:47:30 +0000 (11:47 +0100)
commit24a295e4ef1ca8e97d8b7015e1887b6e83e1c8be
treefc90ee8ce48f1a7809e50563ff1db1b27101100f
parent8a141be3233af7d4f7014ebc44d5452d46b2b1be
x86/headers: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-UAPI headers

While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.

This can be very confusing when switching between userspace
and kernelspace coding, or when dealing with UAPI headers that
rather should use __ASSEMBLER__ instead. So let's standardize on
the __ASSEMBLER__ macro that is provided by the compilers now.

This is mostly a mechanical patch (done with a simple "sed -i"
statement), with some manual tweaks in <asm/frame.h>, <asm/hw_irq.h>
and <asm/setup.h> that mentioned this macro in comments with some
missing underscores.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250314071013.1575167-38-thuth@redhat.com
81 files changed:
arch/x86/boot/boot.h
arch/x86/entry/vdso/extable.h
arch/x86/include/asm/alternative.h
arch/x86/include/asm/asm.h
arch/x86/include/asm/boot.h
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/cpumask.h
arch/x86/include/asm/current.h
arch/x86/include/asm/desc_defs.h
arch/x86/include/asm/dwarf2.h
arch/x86/include/asm/fixmap.h
arch/x86/include/asm/frame.h
arch/x86/include/asm/fred.h
arch/x86/include/asm/fsgsbase.h
arch/x86/include/asm/ftrace.h
arch/x86/include/asm/hw_irq.h
arch/x86/include/asm/ibt.h
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/inst.h
arch/x86/include/asm/irqflags.h
arch/x86/include/asm/jump_label.h
arch/x86/include/asm/kasan.h
arch/x86/include/asm/kexec.h
arch/x86/include/asm/linkage.h
arch/x86/include/asm/mem_encrypt.h
arch/x86/include/asm/msr.h
arch/x86/include/asm/nops.h
arch/x86/include/asm/nospec-branch.h
arch/x86/include/asm/orc_types.h
arch/x86/include/asm/page.h
arch/x86/include/asm/page_32.h
arch/x86/include/asm/page_32_types.h
arch/x86/include/asm/page_64.h
arch/x86/include/asm/page_64_types.h
arch/x86/include/asm/page_types.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/include/asm/percpu.h
arch/x86/include/asm/pgtable-2level_types.h
arch/x86/include/asm/pgtable-3level_types.h
arch/x86/include/asm/pgtable-invert.h
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable_32.h
arch/x86/include/asm/pgtable_32_areas.h
arch/x86/include/asm/pgtable_64.h
arch/x86/include/asm/pgtable_64_types.h
arch/x86/include/asm/pgtable_types.h
arch/x86/include/asm/prom.h
arch/x86/include/asm/pti.h
arch/x86/include/asm/ptrace.h
arch/x86/include/asm/purgatory.h
arch/x86/include/asm/pvclock-abi.h
arch/x86/include/asm/realmode.h
arch/x86/include/asm/segment.h
arch/x86/include/asm/setup.h
arch/x86/include/asm/setup_data.h
arch/x86/include/asm/shared/tdx.h
arch/x86/include/asm/shstk.h
arch/x86/include/asm/signal.h
arch/x86/include/asm/smap.h
arch/x86/include/asm/smp.h
arch/x86/include/asm/tdx.h
arch/x86/include/asm/thread_info.h
arch/x86/include/asm/unwind_hints.h
arch/x86/include/asm/vdso/getrandom.h
arch/x86/include/asm/vdso/gettimeofday.h
arch/x86/include/asm/vdso/processor.h
arch/x86/include/asm/vdso/vsyscall.h
arch/x86/include/asm/xen/interface.h
arch/x86/include/asm/xen/interface_32.h
arch/x86/include/asm/xen/interface_64.h
arch/x86/math-emu/control_w.h
arch/x86/math-emu/exception.h
arch/x86/math-emu/fpu_emu.h
arch/x86/math-emu/status_w.h
arch/x86/realmode/rm/realmode.h
arch/x86/realmode/rm/wakeup.h
tools/arch/x86/include/asm/asm.h
tools/arch/x86/include/asm/nops.h
tools/arch/x86/include/asm/orc_types.h
tools/arch/x86/include/asm/pvclock-abi.h