bpf_helpers_doc.py: Fix warning when compiling bpftool
authorCarlos Neira <cneirabustos@gmail.com>
Fri, 13 Mar 2020 15:46:50 +0000 (12:46 -0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Mar 2020 19:53:40 +0000 (20:53 +0100)
commit5996a587a466fa469531272139d23a3b56e07e5c
treece9491a9f8d62cc6df1fbd713eff34ee7a31bce4
parent4e1fd25d19e83774e41008c1ca35c6c27eb30270
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 <cneirabustos@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200313154650.13366-1-cneirabustos@gmail.com
scripts/bpf_helpers_doc.py