diff options
author | Andrii Nakryiko <[email protected]> | 2022-07-05 15:48:17 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-07-06 16:46:14 +0200 |
commit | c46a12200114ae5ad7b0922e6c8969a22c3afbd7 (patch) | |
tree | 3f9d9fc7c447eb0329273f9278a54f88c075d8c2 /tools/perf/scripts/python/sched-migration.py | |
parent | 645d5d3bc001a7d77459cb8360c36a60954d6008 (diff) |
selftests/bpf: Fix few more compiler warnings
When compiling with -O2, GCC detects few problems with selftests/bpf, so
fix all of them. Two are real issues (uninitialized err and nums
out-of-bounds access), but two other uninitialized variables warnings
are due to GCC not being able to prove that variables are indeed
initialized under conditions under which they are used.
Fix all 4 cases, though.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions