diff options
author | David Michael <[email protected]> | 2022-11-13 15:52:17 -0500 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-11-14 19:02:32 +0100 |
commit | dfd0afbf151d85411b371e841f62b81ee5d1ca54 (patch) | |
tree | da832ab2db27a623d5bbfc54d034957e5d08aaf5 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | f12ed9c04804eec4f1819097a0fd0b4800adac2f (diff) |
libbpf: Fix uninitialized warning in btf_dump_dump_type_data
GCC 11.3.0 fails to compile btf_dump.c due to the following error,
which seems to originate in btf_dump_struct_data where the returned
value would be uninitialized if btf_vlen returns zero.
btf_dump.c: In function ‘btf_dump_dump_type_data’:
btf_dump.c:2363:12: error: ‘err’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
2363 | if (err < 0)
| ^
Fixes: 920d16af9b42 ("libbpf: BTF dumper support for typed data")
Signed-off-by: David Michael <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Acked-by: Alan Maguire <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions