diff --git a/packages/kernel-6.1/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch b/packages/kernel-6.1/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch new file mode 100644 index 00000000..84700f42 --- /dev/null +++ b/packages/kernel-6.1/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch @@ -0,0 +1,38 @@ +From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001 +From: Will Deacon +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 +Cc: Arnaldo Carvalho de Melo +Cc: David Matlack +Signed-off-by: Will Deacon +(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a) +Signed-off-by: Gavin Inglis +--- + 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. diff --git a/packages/kernel-6.1/kernel-6.1.spec b/packages/kernel-6.1/kernel-6.1.spec index 2624b656..4b22e0ea 100644 --- a/packages/kernel-6.1/kernel-6.1.spec +++ b/packages/kernel-6.1/kernel-6.1.spec @@ -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 diff --git a/packages/kernel-6.12/1012-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch b/packages/kernel-6.12/1012-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch new file mode 100644 index 00000000..84700f42 --- /dev/null +++ b/packages/kernel-6.12/1012-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch @@ -0,0 +1,38 @@ +From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001 +From: Will Deacon +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 +Cc: Arnaldo Carvalho de Melo +Cc: David Matlack +Signed-off-by: Will Deacon +(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a) +Signed-off-by: Gavin Inglis +--- + 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. diff --git a/packages/kernel-6.12/kernel-6.12.spec b/packages/kernel-6.12/kernel-6.12.spec index ad615b85..e4ef0975 100644 --- a/packages/kernel-6.12/kernel-6.12.spec +++ b/packages/kernel-6.12/kernel-6.12.spec @@ -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 diff --git a/packages/kernel-6.18-microvm/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch b/packages/kernel-6.18-microvm/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch new file mode 100644 index 00000000..84700f42 --- /dev/null +++ b/packages/kernel-6.18-microvm/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch @@ -0,0 +1,38 @@ +From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001 +From: Will Deacon +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 +Cc: Arnaldo Carvalho de Melo +Cc: David Matlack +Signed-off-by: Will Deacon +(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a) +Signed-off-by: Gavin Inglis +--- + 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. diff --git a/packages/kernel-6.18-microvm/kernel-6.18-microvm.spec b/packages/kernel-6.18-microvm/kernel-6.18-microvm.spec index 0d15b021..2455505b 100644 --- a/packages/kernel-6.18-microvm/kernel-6.18-microvm.spec +++ b/packages/kernel-6.18-microvm/kernel-6.18-microvm.spec @@ -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 diff --git a/packages/kernel-6.18/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch b/packages/kernel-6.18/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch new file mode 100644 index 00000000..84700f42 --- /dev/null +++ b/packages/kernel-6.18/1009-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch @@ -0,0 +1,38 @@ +From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001 +From: Will Deacon +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 +Cc: Arnaldo Carvalho de Melo +Cc: David Matlack +Signed-off-by: Will Deacon +(cherry picked from commit 10a47fb67340bca274276faf855d7d460afd9a7a) +Signed-off-by: Gavin Inglis +--- + 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. diff --git a/packages/kernel-6.18/kernel-6.18.spec b/packages/kernel-6.18/kernel-6.18.spec index e3cd213e..6c3cf85e 100644 --- a/packages/kernel-6.18/kernel-6.18.spec +++ b/packages/kernel-6.18/kernel-6.18.spec @@ -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