Re: [PATCH v2 0/2] Use __u128 in arm64 UAPI headers

From: Jeremy Linton

Date: Wed Sep 02 2026 - 22:29:11 EST


Hi,

On 6/26/26 9:17 AM, Will Deacon wrote:
Hi folks,

This is version two of the patch I previously sent here:

https://lore.kernel.org/r/20260619130835.5678-1-will@xxxxxxxxxx

I even briefly queued that version up, but it exploded spectacularly
when building the kselftests for arm64 [1] [2]. So the only change since
v1 is the addition of a preliminary patch that adds the '__u128' typedef
to the private copy of linux/types.h used by the tools/ directory.

I plan to take this all via the arm64 tree unless anybody objects.

This seems to be creating a interesting situation that the follow-on commit:
10a47fb67340 tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures

Is missing from older kernel tooling/etc, which means the tools that end up pulling this header in won't build on machines running 7.3 kernel headers.

AKA, build/install master, switch back to an older branch and discover say bpftool won't build anymore.



Thanks,



Cheers,

Will

[1] https://lore.kernel.org/r/202606240441.7eZ1TIRM-lkp@xxxxxxxxx
[2] https://lore.kernel.org/r/ajvGS7UBpWzJtzkw@xxxxxxxxxxxxx

Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Nick Desaulniers <nick.desaulniers+lkml@xxxxxxxxx>
Cc: David Matlack <dmatlack@xxxxxxxxxx>
Cc: Steffen Eiden <seiden@xxxxxxxxxxxxx>
Cc: Andreas Grapentin <gra@xxxxxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Dave Martin <dave.martin@xxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
Cc: Marc Zyngier <maz@xxxxxxxxxx>

--->8

Will Deacon (2):
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI
structures
arm64: uapi: Use __u128 instead of __uint128_t in UAPI headers

arch/arm64/include/uapi/asm/ptrace.h | 12 ++++++------
arch/arm64/include/uapi/asm/sigcontext.h | 6 +++---
tools/include/linux/types.h | 5 +++++
3 files changed, 14 insertions(+), 9 deletions(-)