[PATCH] arm: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

Nick Huang sef1548 at gmail.com
Fri Feb 27 10:53:35 PST 2026


>    While not a regression, as this used not to work anyway with ASSEMBLY,
>   the use of ASSEMBLER requires sufficiently new a compiler and in principle
>   the userland may have old tools installed for whatever reason.  So perhaps
>   #error is in order if the compiler is not recent enough, for a complete
>   fix?

>    FWIW GCC 2.95.x didn't yet have it, it landed ultimately with GCC 3.0.
>    Do we care?  For instance the GNU C library still does for its installed
>   headers.
>
>     Maciej

Thanks, Maciej — good point about older toolchains. I'll send v2 of the patch that adds a compile-time check and an #error when the
  compiler is too old to provide ASSEMBLER, making the failure explicit.

--
Regards,
Nick Huang



More information about the linux-arm-kernel mailing list