From: Jeremy Linton <jeremy.linton@arm.com>
To: Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
David Matlack <dmatlack@google.com>,
stable <stable@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
Date: Thu, 3 Sep 2026 19:22:36 -0500 [thread overview]
Message-ID: <bbbc33a1-cfd6-4cac-82c0-253888ca933a@arm.com> (raw)
In-Reply-To: <20260626141730.5976-2-will@kernel.org>
Hi,
Please consider this for all supported stable/LTS kernels.
Without this commit, older kernel trees will fail to build tools on
systems running newer kernel headers.
Upstream commit:
10a47fb67340 ("tools: linux/types.h: Add 128-bit integer types for arm64
UAPI structures")
Thanks,
Cc: stable@vger.kernel.org
On 6/26/26 9:17 AM, Will Deacon wrote:
> The arm64 UAPI exposes some 128-bit integer types to represent things
> such as fpsimd registers in the sigcontext. In preparation for defining
> these using the '__u128' typedef implemented by uapi/linux/types.h, copy
> that typedef over to the private linux/types.h header used by the tools
> directory.
>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: David Matlack <dmatlack@google.com>
> Signed-off-by: Will Deacon <will@kernel.org>
> ---
> tools/include/linux/types.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
> index d41f8a261bce..b6c473b7920d 100644
> --- a/tools/include/linux/types.h
> +++ b/tools/include/linux/types.h
> @@ -23,6 +23,11 @@ typedef enum {
> __GFP_HIGH
> } gfp_t;
>
> +#ifdef __SIZEOF_INT128__
> +typedef __signed__ __int128 __s128 __attribute__((aligned(16)));
> +typedef unsigned __int128 __u128 __attribute__((aligned(16)));
> +#endif
> +
> /*
> * We define u64 as uint64_t for every architecture
> * so that we can print it with "%"PRIx64 without getting warnings.
next prev parent reply other threads:[~2026-09-04 0:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-26 14:17 [PATCH v2 0/2] Use __u128 in arm64 UAPI headers Will Deacon
2026-06-26 14:17 ` [PATCH v2 1/2] tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures Will Deacon
2026-09-04 0:22 ` Jeremy Linton [this message]
2026-06-26 14:17 ` [PATCH v2 2/2] arm64: uapi: Use __u128 instead of __uint128_t in UAPI headers Will Deacon
2026-07-22 8:23 ` [PATCH v2 0/2] Use __u128 in arm64 " Will Deacon
2026-09-03 2:21 ` Jeremy Linton
2026-09-03 10:55 ` Will Deacon
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=bbbc33a1-cfd6-4cac-82c0-253888ca933a@arm.com \
--to=jeremy.linton@arm.com \
--cc=acme@redhat.com \
--cc=arnd@arndb.de \
--cc=dmatlack@google.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®