Subject: Re: [PATCH bpf-next] selftest/bpf: make bpf_iter selftest compilable against old vmlinux.h

From: Jesper Dangaard Brouer <[email-masked]>
Date: Tue, 19 May 2020 09:01:25 +0200

On Mon, 18 May 2020 18:42:24 -0700
Yonghong Song <[email-masked]> wrote:

> On 5/18/20 4:45 PM, Andrii Nakryiko wrote:
> > It's good to be able to compile bpf_iter selftest even on systems that don't
> > have the very latest vmlinux.h, e.g., for libbpf tests against older kernels in
> > Travis CI. To that extent, re-define bpf_iter_meta and corresponding bpf_iter
> > context structs in each selftest. To avoid type clashes with vmlinux.h, rename
> > vmlinux.h's definitions to get them out of the way.
> > 
> > Cc: Jesper Dangaard Brouer <[email-masked]>
> > Cc: Yonghong Song <[email-masked]>
> > Signed-off-by: Andrii Nakryiko <[email-masked]>  
> 
> Acked-by: Yonghong Song <[email-masked]>

Thanks for looking into this Andrii :-)

Acked-by: Jesper Dangaard Brouer <[email-masked]>

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer