]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
m68k: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Wed, 11 Jun 2025 11:40:56 +0000 (13:40 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 6 Jul 2025 10:50:50 +0000 (12:50 +0200)
commit7164aacfcea221e66c41ae02712a549a59892cff
tree19538cdb278c90bbc38997bce49ea7c6f653d389
parent16eea8d2d3c1d325b3b5f25c1e073874082aac74
m68k: 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 almost a completely mechanical patch (done with a simple
"sed -i" statement), with one comment tweaked manually in
arch/m68k/include/asm/mac_baboon.h (which was missing underscores).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20250611114056.118309-3-thuth@redhat.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
27 files changed:
arch/m68k/include/asm/adb_iop.h
arch/m68k/include/asm/bootinfo.h
arch/m68k/include/asm/entry.h
arch/m68k/include/asm/kexec.h
arch/m68k/include/asm/mac_baboon.h
arch/m68k/include/asm/mac_iop.h
arch/m68k/include/asm/mac_oss.h
arch/m68k/include/asm/mac_psc.h
arch/m68k/include/asm/mac_via.h
arch/m68k/include/asm/math-emu.h
arch/m68k/include/asm/mcf_pgtable.h
arch/m68k/include/asm/mcfmmu.h
arch/m68k/include/asm/motorola_pgtable.h
arch/m68k/include/asm/nettel.h
arch/m68k/include/asm/openprom.h
arch/m68k/include/asm/page.h
arch/m68k/include/asm/page_mm.h
arch/m68k/include/asm/page_no.h
arch/m68k/include/asm/pgtable.h
arch/m68k/include/asm/pgtable_mm.h
arch/m68k/include/asm/ptrace.h
arch/m68k/include/asm/setup.h
arch/m68k/include/asm/sun3_pgtable.h
arch/m68k/include/asm/sun3mmu.h
arch/m68k/include/asm/thread_info.h
arch/m68k/include/asm/traps.h
arch/m68k/math-emu/fp_emu.h