Commit 5996a587 authored by Carlos Neira's avatar Carlos Neira Committed by Daniel Borkmann

bpf_helpers_doc.py: Fix warning when compiling bpftool

When compiling bpftool the following warning is found: "declaration of
'struct bpf_pidns_info' will not be visible outside of this function."
This patch adds struct bpf_pidns_info to type_fwds array to fix this.

Fixes: b4490c5c ("bpf: Added new helper bpf_get_ns_current_pid_tgid")
Signed-off-by: default avatarCarlos Neira <cneirabustos@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Reviewed-by: default avatarQuentin Monnet <quentin@isovalent.com>
Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200313154650.13366-1-cneirabustos@gmail.com
parent 4e1fd25d
...@@ -400,6 +400,7 @@ class PrinterHelpers(Printer): ...@@ -400,6 +400,7 @@ class PrinterHelpers(Printer):
'struct bpf_fib_lookup', 'struct bpf_fib_lookup',
'struct bpf_perf_event_data', 'struct bpf_perf_event_data',
'struct bpf_perf_event_value', 'struct bpf_perf_event_value',
'struct bpf_pidns_info',
'struct bpf_sock', 'struct bpf_sock',
'struct bpf_sock_addr', 'struct bpf_sock_addr',
'struct bpf_sock_ops', 'struct bpf_sock_ops',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment