Re: [PATCH] kselftest/riscv: Replace __ASSEMBLY__ with __ASSEMBLER__
From: Paul Walmsley
Date: Tue Sep 01 2026 - 20:34:44 EST
On Thu, 13 Aug 2026, Thomas Huth wrote:
> From: Thomas Huth <thuth@xxxxxxxxxx>
>
> 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 now
> on the __ASSEMBLER__ macro that is provided by the compilers.
>
> Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
Thanks, queued for v7.3-rc. Have you considered patching checkpatch.pl to
catch this problem? Might save a lot of time.
- Paul