nios2: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:09:52 +0000 (08:09 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 25 Aug 2025 10:50:28 +0000 (05:50 -0500)
commite6d8afd2ca731105bf7eba69a61c668fead9cf48
tree6c7c1577e23b21127fe49d53dd8b64ef9d7a6a75
parent331b05b12d25cd2d2f2d7c4114e9ee15146dafd0
nios2: 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 a completely mechanical patch (done with a simple "sed -i"
statement).

Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/nios2/include/asm/entry.h
arch/nios2/include/asm/page.h
arch/nios2/include/asm/processor.h
arch/nios2/include/asm/ptrace.h
arch/nios2/include/asm/registers.h
arch/nios2/include/asm/setup.h
arch/nios2/include/asm/thread_info.h
arch/nios2/include/asm/traps.h