Re: [PATCH bpf-next] tools: bpftool: add missing bpf_prog_linfo forward declaration

2018-12-19 Thread Stanislav Fomichev
On Wed, Dec 19, 2018 at 2:51 PM Stanislav Fomichev wrote: > > When building bpftool without HAVE_LIBBFD_SUPPORT I see the following > warnings: > main.h:164:23: warning: ‘struct bpf_prog_linfo’ declared inside > parameter list will not be visible outside of this definition or > declaration >

[PATCH bpf-next] tools: bpftool: add missing bpf_prog_linfo forward declaration

2018-12-19 Thread Stanislav Fomichev
When building bpftool without HAVE_LIBBFD_SUPPORT I see the following warnings: main.h:164:23: warning: ‘struct bpf_prog_linfo’ declared inside parameter list will not be visible outside of this definition or declaration const struct bpf_prog_linfo *prog_linfo, ^~~~