]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 6 Jun 2025 07:09:51 +0000 (09:09 +0200)
committerPaul Walmsley <pjw@kernel.org>
Tue, 16 Sep 2025 22:25:17 +0000 (16:25 -0600)
commit35ebe00307f3f9b1a7103d0697632c6ef7310d1c
treef2b7888595c8d514a2c4591e260dee6da4c93c54
parent3a8ee3a9f4f6caca192fd2fdc88c1ce56c521b38
riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

__ASSEMBLY__ is only defined by the Makefile of the kernel, so
this is not really useful for uapi headers (unless the userspace
Makefile defines it, too). Let's switch to __ASSEMBLER__ which
gets set automatically by the compiler when compiling assembly
code.

This is a completely mechanical patch (done with a simple "sed -i"
statement).

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-2-thuth@redhat.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/include/uapi/asm/ptrace.h
arch/riscv/include/uapi/asm/sigcontext.h