selftests/bpf: Initialize duration in xdp_noinline.c
authorStanislav Fomichev <sdf@google.com>
Thu, 1 Oct 2020 22:54:40 +0000 (15:54 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Oct 2020 14:46:20 +0000 (16:46 +0200)
commitcffcdbff70a3cf3cc4f42fa2e57012411b1c78a6
tree0c6256181c0880378d85ceed7f1f86570d29d2ef
parent360f89874635b08057757376b8cc4faa221862e2
selftests/bpf: Initialize duration in xdp_noinline.c

Fixes clang error:
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c:35:6: error: variable 'duration' is uninitialized when used here [-Werror,-Wuninitialized]
        if (CHECK(!skel, "skel_open_and_load", "failed\n"))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201001225440.1373233-1-sdf@google.com
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c