[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87mslija6d.fsf@gentoo.org>
Date: Mon, 12 Aug 2024 11:40:58 +0100
From: Sam James <sam@...too.org>
To: Alan Maguire <alan.maguire@...cle.com>
Cc: Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann
<daniel@...earbox.net>, Andrii Nakryiko <andrii@...nel.org>, Martin
KaFai Lau <martin.lau@...ux.dev>, Eduard Zingerman <eddyz87@...il.com>,
Song Liu <song@...nel.org>, Yonghong Song <yonghong.song@...ux.dev>,
John Fastabend <john.fastabend@...il.com>, KP Singh
<kpsingh@...nel.org>, Stanislav Fomichev <sdf@...ichev.me>, Hao Luo
<haoluo@...gle.com>, Jiri Olsa <jolsa@...nel.org>, Nathan Chancellor
<nathan@...nel.org>, Nick Desaulniers <ndesaulniers@...gle.com>, Bill
Wendling <morbo@...gle.com>, Justin Stitt <justinstitt@...gle.com>,
"Jose E . Marchesi" <jose.marchesi@...cle.com>, Andrew Pinski
<quic_apinski@...cinc.com>, Kacper Słomiński
<kacper.slominski72@...il.com>, Arsen Arsenović
<arsen@...too.org>,
bpf@...r.kernel.org, linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH v2] libbpf: workaround -Wmaybe-uninitialized false positive
Alan Maguire <alan.maguire@...cle.com> writes:
> On 09/08/2024 18:26, Sam James wrote:
>> In `elf_close`, we get this with GCC 15 -O3 (at least):
> [...]
>
> Would just initializing struct elf_fd be enough to silence the error
> perhaps, i.e.
Yeah, that WFM. Thanks, sent v3.
Powered by blists - more mailing lists