]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2024 15:24:55 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2024 15:24:55 +0000 (17:24 +0200)
added patches:
tools-resolve_btfids-fix-build-with-musl-libc.patch

queue-6.6/series
queue-6.6/tools-resolve_btfids-fix-build-with-musl-libc.patch [new file with mode: 0644]

index 4a528b7cf496814c116f6b2efefdb1a8df4819e9..5e5a3e3f07ed06868ddb743fa5a7e558554a072d 100644 (file)
@@ -393,3 +393,4 @@ scsi-lpfc-correct-size-for-wqe-for-memset.patch
 scsi-libsas-add-a-helper-sas_get_sas_addr_and_dev_type.patch
 scsi-libsas-fix-disk-not-being-scanned-in-after-being-removed.patch
 x86-sev-skip-rom-range-scans-and-validation-for-sev-snp-guests.patch
+tools-resolve_btfids-fix-build-with-musl-libc.patch
diff --git a/queue-6.6/tools-resolve_btfids-fix-build-with-musl-libc.patch b/queue-6.6/tools-resolve_btfids-fix-build-with-musl-libc.patch
new file mode 100644 (file)
index 0000000..37f7e42
--- /dev/null
@@ -0,0 +1,36 @@
+From 62248b22d01e96a4d669cde0d7005bd51ebf9e76 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 28 Mar 2024 11:59:13 +0100
+Subject: tools/resolve_btfids: fix build with musl libc
+
+From: Natanael Copa <ncopa@alpinelinux.org>
+
+commit 62248b22d01e96a4d669cde0d7005bd51ebf9e76 upstream.
+
+Include the header that defines u32.
+This fixes build of 6.6.23 and 6.1.83 kernels for Alpine Linux, which
+uses musl libc. I assume that GNU libc indirecly pulls in linux/types.h.
+
+Fixes: 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h")
+Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647
+Cc: stable@vger.kernel.org
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+Tested-by: Greg Thelen <gthelen@google.com>
+Link: https://lore.kernel.org/r/20240328110103.28734-1-ncopa@alpinelinux.org
+Signed-off-by: Alexei Starovoitov <ast@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ tools/include/linux/btf_ids.h |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/tools/include/linux/btf_ids.h
++++ b/tools/include/linux/btf_ids.h
+@@ -3,6 +3,8 @@
+ #ifndef _LINUX_BTF_IDS_H
+ #define _LINUX_BTF_IDS_H
++#include <linux/types.h> /* for u32 */
++
+ struct btf_id_set {
+       u32 cnt;
+       u32 ids[];