[PATCH] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers
Maciej W. Rozycki
macro at orcam.me.uk
Wed Feb 18 16:22:40 PST 2026
On Wed, 18 Feb 2026, Nick Huang wrote:
> ASSEMBLY is defined only by the kernel Makefile and thus not suitable for uapi headers
> unless userspace Makefiles also define it. Switch to ASSEMBLER, which the compiler sets
> automatically when compiling assembly. Reference: commit
> 639f08fc20c92c2cc373b2b4d065185daa9633e3
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
More information about the linux-arm-kernel
mailing list