sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:10:03 +0000 (08:10 +0100)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 7 Jun 2025 13:16:21 +0000 (15:16 +0200)
commit9cc646950eefda5605111cbc387b00b1f741c239
tree2e70fdc7e8ffaacf729d37c2d28fbe331d67e721
parent0af2f6be1b4281385b618cb86ad946eded089ac8
sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all 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 a completely mechanical patch (done with a simple "sed -i"
statement).

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17 files changed:
arch/sh/include/asm/cache.h
arch/sh/include/asm/dwarf.h
arch/sh/include/asm/fpu.h
arch/sh/include/asm/ftrace.h
arch/sh/include/asm/mmu.h
arch/sh/include/asm/page.h
arch/sh/include/asm/pgtable.h
arch/sh/include/asm/pgtable_32.h
arch/sh/include/asm/processor.h
arch/sh/include/asm/smc37c93x.h
arch/sh/include/asm/suspend.h
arch/sh/include/asm/thread_info.h
arch/sh/include/asm/tlb.h
arch/sh/include/asm/types.h
arch/sh/include/mach-common/mach/romimage.h
arch/sh/include/mach-ecovec24/mach/romimage.h
arch/sh/include/mach-kfr2r09/mach/romimage.h