]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 6 Jun 2025 07:09:52 +0000 (09:09 +0200)
committerPaul Walmsley <pjw@kernel.org>
Tue, 16 Sep 2025 22:25:30 +0000 (16:25 -0600)
commitf811f58597acba9100dd61cdef052d1d1f931968
tree348b64fe52ed6be3c1f3102cb88cbd7284f5a78b
parent35ebe00307f3f9b1a7103d0697632c6ef7310d1c
riscv: 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 originally was a completely mechanical patch (done with a
simple "sed -i" statement), with some manual fixups during
rebasing of the patch later.

Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: linux-riscv@lists.infradead.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20250606070952.498274-3-thuth@redhat.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
33 files changed:
arch/riscv/include/asm/alternative-macros.h
arch/riscv/include/asm/alternative.h
arch/riscv/include/asm/asm-extable.h
arch/riscv/include/asm/asm.h
arch/riscv/include/asm/assembler.h
arch/riscv/include/asm/barrier.h
arch/riscv/include/asm/cache.h
arch/riscv/include/asm/cpu_ops_sbi.h
arch/riscv/include/asm/csr.h
arch/riscv/include/asm/current.h
arch/riscv/include/asm/errata_list.h
arch/riscv/include/asm/ftrace.h
arch/riscv/include/asm/gpr-num.h
arch/riscv/include/asm/image.h
arch/riscv/include/asm/insn-def.h
arch/riscv/include/asm/jump_label.h
arch/riscv/include/asm/kasan.h
arch/riscv/include/asm/kgdb.h
arch/riscv/include/asm/mmu.h
arch/riscv/include/asm/page.h
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/processor.h
arch/riscv/include/asm/ptrace.h
arch/riscv/include/asm/scs.h
arch/riscv/include/asm/set_memory.h
arch/riscv/include/asm/thread_info.h
arch/riscv/include/asm/vdso.h
arch/riscv/include/asm/vdso/getrandom.h
arch/riscv/include/asm/vdso/gettimeofday.h
arch/riscv/include/asm/vdso/processor.h
arch/riscv/include/asm/vdso/vsyscall.h
tools/arch/riscv/include/asm/csr.h
tools/arch/riscv/include/asm/vdso/processor.h