mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
selftests/bpf: fix compiler warnings in RELEASE=1 mode
[ Upstream commit 62d9a969f4 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
03ca174794
commit
afe022417b
|
|
@ -1214,7 +1214,7 @@ static int cmp_join_stat(const struct verif_stats_join *s1,
|
|||
enum stat_id id, enum stat_variant var, bool asc)
|
||||
{
|
||||
const char *str1 = NULL, *str2 = NULL;
|
||||
double v1, v2;
|
||||
double v1 = 0.0, v2 = 0.0;
|
||||
int cmp = 0;
|
||||
|
||||
fetch_join_stat_value(s1, id, var, &str1, &v1);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ static int open_xsk(int ifindex, struct xsk *xsk, __u32 queue_id)
|
|||
.frame_size = XSK_UMEM__DEFAULT_FRAME_SIZE,
|
||||
.flags = XDP_UMEM_UNALIGNED_CHUNK_FLAG,
|
||||
};
|
||||
__u32 idx;
|
||||
__u32 idx = 0;
|
||||
u64 addr;
|
||||
int ret;
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user