Re: [PATCH v5 12/13] include: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
From: Bart Van Assche
Date: Fri Oct 23 2026 - 11:42:10 EST
On 10/22/26 11:48 PM, Thomas Huth wrote:
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.
This is a completely mechanical patch (done with a simple "sed -i"
statement).
For future patch submissions, please include the command that has been
used to modify the code in the patch description. Anyway:
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>