Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001
From: Will Deacon <[email protected]>
Date: Fri, 26 Jun 2026 15:17:28 +0100
Subject: [PATCH] tools: linux/types.h: Add 128-bit integer types for arm64
UAPI structures

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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Matlack <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a)
Signed-off-by: Gavin Inglis <[email protected]>
---
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 d41f8a261bce82..b6c473b7920db0 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.
4 changes: 4 additions & 0 deletions packages/kernel-6.1/kernel-6.1.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Patch1006: 1006-strscpy-write-destination-buffer-only-once.patch
# Backport patch to disable LZ4 rolling decompression for EROFS
Patch1008: 1008-erofs-disable-LZ4-rolling-decompression-for-now.patch

# Add __u128 to tools/include/linux/types.h so kernel host-tool builds
# work with kernel-headers >= 7.3 on aarch64 hosts.
Patch1009: 1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch

BuildRequires: bc
BuildRequires: elfutils-devel
BuildRequires: hostname
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001
From: Will Deacon <[email protected]>
Date: Fri, 26 Jun 2026 15:17:28 +0100
Subject: [PATCH] tools: linux/types.h: Add 128-bit integer types for arm64
UAPI structures

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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Matlack <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a)
Signed-off-by: Gavin Inglis <[email protected]>
---
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 d41f8a261bce82..b6c473b7920db0 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.
4 changes: 4 additions & 0 deletions packages/kernel-6.12/kernel-6.12.spec
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ Patch1009: 1009-Revert-selinux-preserve-user-SID-across-nested-backi.patch
Patch1010: 1010-Revert-selinux-fix-incorrect-execmem-checks-on-overl.patch
Patch1011: 1011-Revert-selinux-fix-overlayfs-mmap-and-mprotect-acces.patch

# Add __u128 to tools/include/linux/types.h so kernel host-tool builds
# work with kernel-headers >= 7.3 on aarch64 hosts.
Patch1012: 1012-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch

BuildRequires: bc
BuildRequires: elfutils-devel
BuildRequires: hostname
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001
From: Will Deacon <[email protected]>
Date: Fri, 26 Jun 2026 15:17:28 +0100
Subject: [PATCH] tools: linux/types.h: Add 128-bit integer types for arm64
UAPI structures

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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Matlack <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a)
Signed-off-by: Gavin Inglis <[email protected]>
---
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 d41f8a261bce82..b6c473b7920db0 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.
4 changes: 4 additions & 0 deletions packages/kernel-6.18-microvm/kernel-6.18-microvm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ Patch1006: 1006-Revert-selinux-recheck-intermediate-backing-files-on-mprotect.pa
Patch1007: 1007-Revert-selinux-preserve-user-SID-across-nested-backing.patch
Patch1008: 1008-Revert-selinux-fix-overlayfs-mmap-and-mprotect-acces.patch

# Add __u128 to tools/include/linux/types.h so kernel host-tool builds
# work with kernel-headers >= 7.3 on aarch64 hosts.
Patch1009: 1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch

BuildRequires: bc
BuildRequires: elfutils-devel
BuildRequires: hostname
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001
From: Will Deacon <[email protected]>
Date: Fri, 26 Jun 2026 15:17:28 +0100
Subject: [PATCH] tools: linux/types.h: Add 128-bit integer types for arm64
UAPI structures

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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Matlack <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a)
Signed-off-by: Gavin Inglis <[email protected]>
---
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 d41f8a261bce82..b6c473b7920db0 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.
4 changes: 4 additions & 0 deletions packages/kernel-6.18/kernel-6.18.spec
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ Patch1006: 1006-Revert-selinux-recheck-intermediate-backing-files-on-mprotect.pa
Patch1007: 1007-Revert-selinux-preserve-user-SID-across-nested-backing.patch
Patch1008: 1008-Revert-selinux-fix-overlayfs-mmap-and-mprotect-acces.patch

# Add __u128 to tools/include/linux/types.h so kernel host-tool builds
# work with kernel-headers >= 7.3 on aarch64 hosts.
Patch1009: 1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch

BuildRequires: bc
BuildRequires: elfutils-devel
BuildRequires: hostname
Expand Down
Loading