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

From: Nick Huang

Date: Fri Feb 27 2026 - 13:54:04 EST


> 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