[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a71d42ca-662d-d057-6939-60ad2bc44e1d@isovalent.com>
Date: Fri, 13 Mar 2020 16:20:03 +0000
From: Quentin Monnet <quentin@...valent.com>
To: Carlos Neira <cneirabustos@...il.com>, netdev@...r.kernel.org
Cc: yhs@...com, ebiederm@...ssion.com, brouer@...hat.com,
bpf@...r.kernel.org
Subject: Re: [PATCH bpf-next] bpf_helpers_doc.py: Fix warning when compiling
bpftool.
2020-03-13 12:46 UTC-0300 ~ Carlos Neira <cneirabustos@...il.com>
>
> 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.
>
> Signed-off-by: Carlos Neira <cneirabustos@...il.com>
> ---
> scripts/bpf_helpers_doc.py | 1 +
> 1 file changed, 1 insertion(+)
>
> 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',
>
Note that the warning is not specific to bpftool (I just happened to
spot it when compiling this tool), it's for anything that uses libbpf,
or more generally, the generated header for helpers.
It is fixed by your patch, thank you!
Reviewed-by: Quentin Monnet <quentin@...valent.com>
Powered by blists - more mailing lists