[PATCH] kexec: Replace __ASSEMBLY__ with __ASSEMBLER__ in header file

Pratyush Yadav pratyush at kernel.org
Mon Jun 22 06:50:16 PDT 2026


On Fri, Jun 19 2026, Thomas Huth wrote:

> From: Thomas Huth <thuth at redhat.com>
>
> 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.

Sounds reasonable.

Acked-by: Pratyush Yadav <pratyush at kernel.org>

>
> Signed-off-by: Thomas Huth <thuth at redhat.com>
[...]

-- 
Regards,
Pratyush Yadav



More information about the kexec mailing list