Re: [PATCH v2] static_call / jump_label: Replace __ASSEMBLY__ with __ASSEMBLER__ in headers

From: Peter Zijlstra

Date: Fri Jun 19 2026 - 18:36:18 EST


On Fri, Jun 19, 2026 at 02:49:36PM +0200, 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.
>
> This is a completely mechanical patch (done with a simple "sed -i"
> statement).
>
> Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
> ---

Thanks!