diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2023-12-13 01:53:43 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-12-13 21:27:16 +0300 |
commit | 62d9a969f4a95219c757831e9ad66cd4dd9edee5 (patch) | |
tree | ea7d27642c644b1bdaa949b40d68de7a99b8f79d /tools/testing/selftests/bpf/xdp_hw_metadata.c | |
parent | e1ba7f64b192f083b4423644be03bb9e3dc8ae84 (diff) | |
download | linux-62d9a969f4a95219c757831e9ad66cd4dd9edee5.tar.xz |
selftests/bpf: fix compiler warnings in RELEASE=1 mode
When compiling BPF selftests with RELEASE=1, we get two new
warnings, which are treated as errors. Fix them.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20231212225343.1723081-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/xdp_hw_metadata.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdp_hw_metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdp_hw_metadata.c b/tools/testing/selftests/bpf/xdp_hw_metadata.c index 3291625ba4fb..c69c08933fdd 100644 --- a/tools/testing/selftests/bpf/xdp_hw_metadata.c +++ b/tools/testing/selftests/bpf/xdp_hw_metadata.c @@ -79,7 +79,7 @@ static int open_xsk(int ifindex, struct xsk *xsk, __u32 queue_id) .flags = XSK_UMEM__DEFAULT_FLAGS, .tx_metadata_len = sizeof(struct xsk_tx_metadata), }; - __u32 idx; + __u32 idx = 0; u64 addr; int ret; int i; |