mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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: b4490c5c4e
("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
This commit is contained in:
parent
4e1fd25d19
commit
5996a587a4
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user