Re: [PATCH bpf-next v2 2/4] selftests: bpf: Add helper to compare socket cookies

From: Alexei Starovoitov
Date: Tue Sep 29 2020 - 11:48:44 EST


On Mon, Sep 28, 2020 at 10:59 PM Martin KaFai Lau <kafai@xxxxxx> wrote:
> >
> > +static void compare_cookies(struct bpf_map *src, struct bpf_map *dst)
> > +{
> > + __u32 i, max_entries = bpf_map__max_entries(src);
> > + int err, duration, src_fd, dst_fd;
> This should have a compiler warning. "duration" is not initialized.

There was a warning. I noticed it while applying and fixed it up.
Lorenz, please upgrade your compiler. This is not the first time such
warning has been missed.