Message ID | 20241022172329.3871958-1-ezulian@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | Fix -Wmaybe-uninitialized warnings/errors | expand |
On Tue, Oct 22, 2024 at 07:23:26PM +0200, Eder Zulian wrote: SNIP > The above warnings and/or errors are fixed. However, they are observed with > current default compilation options. > > Updates since v1: > > - Incorporate feedback from reviewers. Add a comment about an alternative > patch for parse-options.c sent before (based on comments from Sam James.) > Split in multiple patches creating this series and a typo was fixed > "Initiazlide" -> "Initialize" (suggested by Viktor Malik). State more > clearly that the -Wmaybe-uninitialized issues only happen when compiling > with non-default compilation options (based on comments from Yonghong > Song.) > > Thanks, > > Eder Zulian (3): > resolve_btfids: Fix compiler warnings > libbpf: Prevent compiler warnings/errors > libsubcmd: Silence compiler warning Acked-by: Jiri Olsa <jolsa@kernel.org> jirka > > tools/bpf/resolve_btfids/main.c | 4 ++-- > tools/lib/bpf/btf_dump.c | 4 ++-- > tools/lib/subcmd/parse-options.c | 2 +- > 3 files changed, 5 insertions(+), 5 deletions(-) > > -- > 2.46.2 >
Hello: This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@kernel.org>: On Tue, 22 Oct 2024 19:23:26 +0200 you wrote: > Hello! > > This v2 series initializes the variables 'set' and 'set8' in sets_patch to > NULL, along with the variables 'new_off' and 'pad_bits' and 'pad_type' in > btf_dump_emit_bit_padding to zero or NULL according to their types and the > variable 'o' in options__order to NULL to prevent compiler warnings/errors > which are observed when compiling with non-default compilation options, but > are not emitted by the compiler with the current default compilation > options. > > [...] Here is the summary with links: - [v2,1/3] resolve_btfids: Fix compiler warnings https://git.kernel.org/bpf/bpf-next/c/2c3d022abe6c - [v2,2/3] libbpf: Prevent compiler warnings/errors https://git.kernel.org/bpf/bpf-next/c/7f4ec77f3fee - [v2,3/3] libsubcmd: Silence compiler warning https://git.kernel.org/bpf/bpf-next/c/7a4ffec9fd54 You are awesome, thank you!