diff options
author | Carlos Neira <[email protected]> | 2020-03-13 12:46:50 -0300 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-03-13 20:53:40 +0100 |
commit | 5996a587a466fa469531272139d23a3b56e07e5c (patch) | |
tree | ce9491a9f8d62cc6df1fbd713eff34ee7a31bce4 | |
parent | 4e1fd25d19e83774e41008c1ca35c6c27eb30270 (diff) |
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: b4490c5c4e02 ("bpf: Added new helper bpf_get_ns_current_pid_tgid")
Signed-off-by: Carlos Neira <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
-rwxr-xr-x | scripts/bpf_helpers_doc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/bpf_helpers_doc.py b/scripts/bpf_helpers_doc.py index c1e2b5410faa..f43d193aff3a 100755 --- a/scripts/bpf_helpers_doc.py +++ b/scripts/bpf_helpers_doc.py @@ -400,6 +400,7 @@ class PrinterHelpers(Printer): 'struct bpf_fib_lookup', 'struct bpf_perf_event_data', 'struct bpf_perf_event_value', + 'struct bpf_pidns_info', 'struct bpf_sock', 'struct bpf_sock_addr', 'struct bpf_sock_ops', |