summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorJoe Stringer2018-11-09 19:18:16 +0100
committerAlexei Starovoitov2018-11-17 02:40:10 +0100
commit5c86d2125b58949122e03f04ce940e6f5b8534ba (patch)
tree01acfe764ce488de7056a4ed00ed0f92a769f96d /tools/lib/bpf/libbpf.c
parentMerge branch 'narrow-loads' (diff)
downloadkernel-qcow2-linux-5c86d2125b58949122e03f04ce940e6f5b8534ba.tar.gz
kernel-qcow2-linux-5c86d2125b58949122e03f04ce940e6f5b8534ba.tar.xz
kernel-qcow2-linux-5c86d2125b58949122e03f04ce940e6f5b8534ba.zip
selftests/bpf: Fix uninitialized duration warning
Daniel Borkmann reports: test_progs.c: In function ‘main’: test_progs.c:81:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%s:PASS:%s %d nsec\n", __func__, tag, duration);\ ^~~~~~ test_progs.c:1706:8: note: ‘duration’ was declared here __u32 duration; ^~~~~~~~ Signed-off-by: Joe Stringer <joe@wand.net.nz> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions