From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD159159C9B for ; Sun, 11 Aug 2024 13:32:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 067262BC06B; Sun, 11 Aug 2024 13:32:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E28E92BC06B for ; Sun, 11 Aug 2024 13:32:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2021F34310B for ; Sun, 11 Aug 2024 13:32:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 808AC13E1 for ; Sun, 11 Aug 2024 13:32:00 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1723383089.2c7a18d50c40d0cea893591cf6cad68893a1de20.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:6.1 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 2990_libbpf-workaround-Wmaybe-uninitialized-false-pos.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 2c7a18d50c40d0cea893591cf6cad68893a1de20 X-VCS-Branch: 6.1 Date: Sun, 11 Aug 2024 13:32:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: be73751c-6e06-4198-a5f9-294ee85f2187 X-Archives-Hash: 6549efb062deab00fc8a35a32dde073a commit: 2c7a18d50c40d0cea893591cf6cad68893a1de20 Author: Mike Pagano gentoo org> AuthorDate: Sun Aug 11 13:31:29 2024 +0000 Commit: Mike Pagano gentoo org> CommitDate: Sun Aug 11 13:31:29 2024 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2c7a18d5 Drop libbfp patch. Not relevant for 6.1 Signed-off-by: Mike Pagano gentoo.org> 0000_README | 4 -- ...workaround-Wmaybe-uninitialized-false-pos.patch | 67 ---------------------- 2 files changed, 71 deletions(-) diff --git a/0000_README b/0000_README index 86ad8e24..e41d3db8 100644 --- a/0000_README +++ b/0000_README @@ -499,10 +499,6 @@ Patch: 2960_jump-label-fix.patch From: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/ Desc: jump_label: Fix a regression -Patch: 2990_libbpf-workaround-Wmaybe-uninitialized-false-pos.patch -From: https://lore.kernel.org/bpf/3ebbe7a4e93a5ddc3a26e2e11d329801d7c8de6b.1723217044.git.sam@gentoo.org/ -Desc: libbpf: workaround -Wmaybe-uninitialized false positive - Patch: 3000_Support-printing-firmware-info.patch From: https://bugs.gentoo.org/732852 Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev diff --git a/2990_libbpf-workaround-Wmaybe-uninitialized-false-pos.patch b/2990_libbpf-workaround-Wmaybe-uninitialized-false-pos.patch deleted file mode 100644 index 86de18d7..00000000 --- a/2990_libbpf-workaround-Wmaybe-uninitialized-false-pos.patch +++ /dev/null @@ -1,67 +0,0 @@ -From git@z Thu Jan 1 00:00:00 1970 -Subject: [PATCH] libbpf: workaround -Wmaybe-uninitialized false positive -From: Sam James -Date: Fri, 09 Aug 2024 16:24:04 +0100 -Message-Id: <3ebbe7a4e93a5ddc3a26e2e11d329801d7c8de6b.1723217044.git.sam@gentoo.org> -MIME-Version: 1.0 -Content-Type: text/plain; charset="utf-8" -Content-Transfer-Encoding: 8bit - -In `elf_close`, we get this with GCC 15 -O3 (at least): -``` -In function ‘elf_close’, - inlined from ‘elf_close’ at elf.c:53:6, - inlined from ‘elf_find_func_offset_from_file’ at elf.c:384:2: -elf.c:57:9: warning: ‘elf_fd.elf’ may be used uninitialized [-Wmaybe-uninitialized] - 57 | elf_end(elf_fd->elf); - | ^~~~~~~~~~~~~~~~~~~~ -elf.c: In function ‘elf_find_func_offset_from_file’: -elf.c:377:23: note: ‘elf_fd.elf’ was declared here - 377 | struct elf_fd elf_fd; - | ^~~~~~ -In function ‘elf_close’, - inlined from ‘elf_close’ at elf.c:53:6, - inlined from ‘elf_find_func_offset_from_file’ at elf.c:384:2: -elf.c:58:9: warning: ‘elf_fd.fd’ may be used uninitialized [-Wmaybe-uninitialized] - 58 | close(elf_fd->fd); - | ^~~~~~~~~~~~~~~~~ -elf.c: In function ‘elf_find_func_offset_from_file’: -elf.c:377:23: note: ‘elf_fd.fd’ was declared here - 377 | struct elf_fd elf_fd; - | ^~~~~~ -``` - -In reality, our use is fine, it's just that GCC doesn't model errno -here (see linked GCC bug). Suppress -Wmaybe-uninitialized accordingly. - -Link: https://gcc.gnu.org/PR114952 -Signed-off-by: Sam James ---- - tools/lib/bpf/elf.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/tools/lib/bpf/elf.c b/tools/lib/bpf/elf.c -index c92e02394159e..ee226bb8e1af0 100644 ---- a/tools/lib/bpf/elf.c -+++ b/tools/lib/bpf/elf.c -@@ -369,6 +369,9 @@ long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name) - return ret; - } - -+#pragma GCC diagnostic push -+/* https://gcc.gnu.org/PR114952 */ -+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - /* Find offset of function name in ELF object specified by path. "name" matches - * symbol name or name@@LIB for library functions. - */ -@@ -384,6 +387,7 @@ long elf_find_func_offset_from_file(const char *binary_path, const char *name) - elf_close(&elf_fd); - return ret; - } -+#pragma GCC diagnostic pop - - struct symbol { - const char *name; --- -2.45.2 -