]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
bpftool: Fix maybe-uninitialized warnings
authorAndrii Nakryiko <andrii@kernel.org>
Sat, 13 Mar 2021 21:09:18 +0000 (13:09 -0800)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:33 +0000 (17:46 -0600)
commit4b88294c77057944508662b09d02e14d47725f9e
treed360f9c51acf7ff8e2c62340d32e38e0c35ddcf0
parente404487856c7ab0da8dc2a4f713111d80cbc0734
bpftool: Fix maybe-uninitialized warnings

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 4bbb3583687051ef99966ddaeb1730441b777d40 ]

Somehow when bpftool is compiled in -Og mode, compiler produces new warnings
about possibly uninitialized variables. Fix all the reported problems.

Fixes: 2119f2189df1 ("bpftool: add C output format option to btf dump subcommand")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210313210920.1959628-3-andrii@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/bpf/bpftool/btf.c
tools/bpf/bpftool/main.c
tools/bpf/bpftool/map.c