public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Nick Huang <sef1548@gmail.com>
To: macro@orcam.me.uk
Cc: davidgow@google.com, dongsheng.yang@linux.dev,
	dory85109@gmail.com, ebiggers@kernel.org, idryomov@gmail.com,
	jlayton@kernel.org, john.g.garry@oracle.com,
	kusogame68@gmail.com, likerockman102@hotmail.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux@armlinux.org.uk,
	linux@weissschuh.net, namhyung@kernel.org, robh@kernel.org,
	sef1548@gmail.com, squid@squidspirit.com, wdhh6@aliyun.com,
	wqu@suse.com, yot4106@gmail.com
Subject: Re: [PATCH v2] arm: Replace ASSEMBLY with ASSEMBLER in uapi
Date: Mon,  9 Mar 2026 15:24:23 +0000	[thread overview]
Message-ID: <20260309152423.2582-1-sef1548@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2603011816460.44093@angie.orcam.me.uk>

Add a compatibility shim for __ASSEMBLER__ to support older GCC versions.
This bridge ensures that toolchains defining only __ASSEMBLY__ can correctly identify assembly stages.
This block can be removed once consensus is reached to drop support for these legacy compilers. If this version is acceptable, I will send it out in the v3 patch.

diff --git a/arch/arm/include/uapi/asm/ptrace.h b/arch/arm/include/uapi/asm/ptrace.h
index 8896c23cc..427eb70bd 100644
--- a/arch/arm/include/uapi/asm/ptrace.h
+++ b/arch/arm/include/uapi/asm/ptrace.h
@@ -119,7 +119,11 @@
 #define PT_DATA_ADDR		0x10004
 #define PT_TEXT_END_ADDR	0x10008
 
-#ifndef __ASSEMBLY__
+#if !defined(__ASSEMBLER__) && defined(__ASSEMBLY__)
+#define __ASSEMBLER__ __ASSEMBLY__
+#endif
+
+#ifndef __ASSEMBLER__ 
 
 /*
  * This struct defines the way the registers are stored on the
@@ -158,6 +162,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



  parent reply	other threads:[~2026-03-09 15:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-28 12:13 [PATCH v2] arm: Replace ASSEMBLY with ASSEMBLER in uapi headers Nick Huang
2026-02-28 12:19 ` Thomas Weißschuh
2026-02-28 12:45   ` Nick Huang
2026-03-01 20:12     ` Maciej W. Rozycki
2026-03-01 22:06       ` Thomas Weißschuh
2026-03-03 16:10       ` Nick Huang
2026-03-09 15:24       ` Nick Huang [this message]
2026-03-09 16:01         ` [PATCH v2] arm: Replace ASSEMBLY with ASSEMBLER in uapi Thomas Weißschuh
2026-03-10 14:13           ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260309152423.2582-1-sef1548@gmail.com \
    --to=sef1548@gmail.com \
    --cc=davidgow@google.com \
    --cc=dongsheng.yang@linux.dev \
    --cc=dory85109@gmail.com \
    --cc=ebiggers@kernel.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=john.g.garry@oracle.com \
    --cc=kusogame68@gmail.com \
    --cc=likerockman102@hotmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linux@weissschuh.net \
    --cc=macro@orcam.me.uk \
    --cc=namhyung@kernel.org \
    --cc=robh@kernel.org \
    --cc=squid@squidspirit.com \
    --cc=wdhh6@aliyun.com \
    --cc=wqu@suse.com \
    --cc=yot4106@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox