]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:09:54 +0000 (08:09 +0100)
committerStafford Horne <shorne@gmail.com>
Sat, 7 Jun 2025 05:44:28 +0000 (06:44 +0100)
commitf0eedcf22581ca1cc438fb38a479ff41ab882d51
tree9e3281bcbe8063029271c8c68abb1ee941bb7d27
parentc403db6f00de4ecbde869ca79dd53513e9f7af0f
openrisc: 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: Jonas Bonn <jonas@southpole.se>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: Stafford Horne <shorne@gmail.com>
Cc: linux-openrisc@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/mmu.h
arch/openrisc/include/asm/page.h
arch/openrisc/include/asm/pgtable.h
arch/openrisc/include/asm/processor.h
arch/openrisc/include/asm/ptrace.h
arch/openrisc/include/asm/setup.h
arch/openrisc/include/asm/thread_info.h