diff options
author | 2020-10-01 17:04:51 -0700 | |
---|---|---|
committer | 2020-10-02 16:47:32 +0200 | |
commit | 48ca6243c6adf1a3d7e7a0fd519ba918eb7b00ca (patch) | |
tree | 8dfe8d356bf104cdc96ea585153a6e55ed1459ee /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: Initialize duration in xdp_noinline.c (diff) | |
download | wireguard-linux-48ca6243c6adf1a3d7e7a0fd519ba918eb7b00ca.tar.xz wireguard-linux-48ca6243c6adf1a3d7e7a0fd519ba918eb7b00ca.zip |
selftests/bpf: Properly initialize linfo in sockmap_basic
When using -Werror=missing-braces, compiler complains about missing braces.
Let's use use ={} initialization which should do the job:
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c: In function 'test_sockmap_iter':
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c:181:8: error: missing braces around initializer [-Werror=missing-braces]
union bpf_iter_link_info linfo = {0};
^
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c:181:8: error: (near initialization for 'linfo.map') [-Werror=missing-braces]
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c: At top level:
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201002000451.1794044-1-sdf@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions