diff options
| author | Quentin Monnet <[email protected]> | 2018-12-14 13:56:00 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-12-15 00:31:49 +0000 |
| commit | 8c03ecf712f5bbbb9d353ed69715aef3cc2b4029 (patch) | |
| tree | 47f8f1030470acab44ae6ec844fd3b77a1147a84 /tools/bpf/bpftool/prog.c | |
| parent | tools: bpftool: add a prog array map update example to documentation (diff) | |
| download | kernel-8c03ecf712f5bbbb9d353ed69715aef3cc2b4029.tar.gz kernel-8c03ecf712f5bbbb9d353ed69715aef3cc2b4029.zip | |
tools: bpftool: fix warning on struct bpf_prog_linfo definition
The following warning appears when compiling bpftool without BFD
support:
main.h:198: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,
Fix it by declaring struct bpf_prog_linfo even in the case BFD is not
supported.
Fixes: b053b439b72a ("bpf: libbpf: bpftool: Print bpf_line_info during prog dump")
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
