[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e03e59ab-7bf7-3a69-77e8-35ffff6bb3bf@fb.com>
Date: Tue, 8 Sep 2020 10:54:12 -0700
From: Andrii Nakryiko <andriin@...com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
Networking <netdev@...r.kernel.org>
CC: Linux Next Mailing List <linux-next@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: linux-next: build failure after merge of the bpf-next tree
On 9/7/20 8:08 PM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the bpf-next tree, today's linux-next build (powerpcle perf)
> failed like this:
>
> util/bpf-loader.c: In function 'config_bpf_program':
> util/bpf-loader.c:331:2: error: 'bpf_program__title' is deprecated: BPF program title is confusing term; please use bpf_program__section_name() instead [-Werror=deprecated-declarations]
> 331 | config_str = bpf_program__title(prog, false);
> | ^~~~~~~~~~
> In file included from util/bpf-loader.c:10:
> tools/lib/bpf/libbpf.h:203:13: note: declared here
> 203 | const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy);
> | ^~~~~~~~~~~~~~~~~~
> util/bpf-loader.c: In function 'preproc_gen_prologue':
> util/bpf-loader.c:457:3: error: 'bpf_program__title' is deprecated: BPF program title is confusing term; please use bpf_program__section_name() instead [-Werror=deprecated-declarations]
> 457 | title = bpf_program__title(prog, false);
> | ^~~~~
> In file included from util/bpf-loader.c:10:
> tools/lib/bpf/libbpf.h:203:13: note: declared here
> 203 | const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy);
> | ^~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> Caused or exposed by commit
>
> 521095842027 ("libbpf: Deprecate notion of BPF program "title" in favor of "section name"")
>
> I have used the bpf-next tree from next-20200903 for today.
>
perf code is using deprecated bpf_program__title() API. I'll send a
patch for bpf-next to replace it with bpf_program__section_name().
Thanks for letting me know about build warning!
Powered by blists - more mailing lists