* [PATCH] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers
@ 2026-02-18 13:39 Nick Huang
2026-02-19 0:22 ` Maciej W. Rozycki
0 siblings, 1 reply; 3+ messages in thread
From: Nick Huang @ 2026-02-18 13:39 UTC (permalink / raw)
To: Russell King
Cc: yot4106, dory85109, Eric Biggers, Rob Herring, Dongsheng Yang,
John Garry, Jeff Layton, Chaohai Chen, Nick Huang, David Gow,
Qu Wenruo, Namhyung Kim, Ilya Dryomov, linux-arm-kernel,
linux-kernel
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
Signed-off-by: Nick Huang <sef1548@gmail.com>
---
arch/arm/include/uapi/asm/ptrace.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/include/uapi/asm/ptrace.h b/arch/arm/include/uapi/asm/ptrace.h
index 8896c23cc..f28cbd318 100644
--- a/arch/arm/include/uapi/asm/ptrace.h
+++ b/arch/arm/include/uapi/asm/ptrace.h
@@ -119,7 +119,7 @@
#define PT_DATA_ADDR 0x10004
#define PT_TEXT_END_ADDR 0x10008
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
/*
* This struct defines the way the registers are stored on the
@@ -158,6 +158,6 @@ struct pt_regs {
#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ )
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
#endif /* _UAPI__ASM_ARM_PTRACE_H */
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers
2026-02-18 13:39 [PATCH] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers Nick Huang
@ 2026-02-19 0:22 ` Maciej W. Rozycki
2026-02-27 18:53 ` [PATCH] arm: Replace __ASSEMBLY__ with __ASSEMBLER__ " Nick Huang
0 siblings, 1 reply; 3+ messages in thread
From: Maciej W. Rozycki @ 2026-02-19 0:22 UTC (permalink / raw)
To: Nick Huang
Cc: Russell King, yot4106, dory85109, Eric Biggers, Rob Herring,
Dongsheng Yang, John Garry, Jeff Layton, Chaohai Chen, David Gow,
Qu Wenruo, Namhyung Kim, Ilya Dryomov, linux-arm-kernel,
linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
2026-02-19 0:22 ` Maciej W. Rozycki
@ 2026-02-27 18:53 ` Nick Huang
0 siblings, 0 replies; 3+ messages in thread
From: Nick Huang @ 2026-02-27 18:53 UTC (permalink / raw)
To: macro
Cc: davidgow, dongsheng.yang, dory85109, ebiggers, idryomov, jlayton,
john.g.garry, linux-arm-kernel, linux-kernel, linux, namhyung,
robh, sef1548, wdhh6, wqu, yot4106, likerockman102, squid
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=yes, Size: 735 bytes --]
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-27 18:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 13:39 [PATCH] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers Nick Huang
2026-02-19 0:22 ` Maciej W. Rozycki
2026-02-27 18:53 ` [PATCH] arm: Replace __ASSEMBLY__ with __ASSEMBLER__ " Nick Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox