[PATCH v2 0/2] arm64: Replace __ASSEMBLY__ with __ASSEMBLER__ in headers

Catalin Marinas catalin.marinas at arm.com
Tue Nov 11 12:16:35 PST 2025


On Fri, 10 Oct 2025 15:01:14 +0200, Thomas Huth wrote:
> The kernel Makefiles define the __ASSEMBLY__ macro to provide
> a way to use headers in both, assembler and C source code.
> However, all the supported versions of the GCC and Clang compilers
> also define the macro __ASSEMBLER__ automatically already when compiling
> assembler code, so some kernel headers are using __ASSEMBLER__ instead.
> With regards to userspace code, this seems also to be constant source
> of confusion, see for example these links here:
> 
> [...]

Applied to arm64 (for-next/assembler-macro), thanks!

[1/2] arm64: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
      https://git.kernel.org/arm64/c/639f08fc20c9
[2/2] arm64: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
      https://git.kernel.org/arm64/c/287d163322b7

-- 
Catalin




More information about the linux-arm-kernel mailing list