From: Heiko Carstens <hca@linux.ibm.com>
To: Mark Brown <broonie@kernel.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Liam Howlett <liam.howlett@oracle.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Alexei Starovoitov <ast@kernel.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>,
bpf@vger.kernel.org, linux-next@vger.kernel.org,
Quentin Monnet <quentin@isovalent.com>
Subject: Re: [PATCH] bpftool: fix broken compile on s390 for linux-next repository
Date: Fri, 14 Apr 2023 10:47:02 +0200 [thread overview]
Message-ID: <ZDkTBjBSWTHhvB3B@osiris> (raw)
In-Reply-To: <3f952aed-0926-eb26-6472-2d0443c1a0ff@isovalent.com>
Full quote below for reference.
Mark or Stephen could you please add the patch below to linux-next?
This solves a merge conflict between perf tree commit f7a858bffcdd ("tools:
Rename __fallthrough to fallthrough") and bpf-next tree commit 9fd496848b1c
("bpftool: Support inline annotations when dumping the CFG of a program").
FWIW, the perf tree commit also seems to have missed an additional
occurence of __fallthrough in samples/bpf/hbm.c.
Thanks!
On Wed, Apr 12, 2023 at 02:27:23PM +0100, Quentin Monnet wrote:
> 2023-04-12 14:36 UTC+0200 ~ Thomas Richter <tmricht@linux.ibm.com>
> > Commit 9fd496848b1c ("bpftool: Support inline annotations when dumping the CFG of a program")
> > breaks the build of the perf tool on s390 in the linux-next repository.
> > Here is the make output:
> >
> > make -C tools/perf
> > ....
> > btf_dumper.c: In function 'dotlabel_puts':
> > DEBUG: btf_dumper.c:838:25: error: '__fallthrough' undeclared \
> > (first use in this function); did you mean 'fallthrough'?
> > DEBUG: 838 | __fallthrough;
> > DEBUG: | ^~~~~~~~~~~~~
> > DEBUG: | fallthrough
> > DEBUG: btf_dumper.c:838:25: note: each undeclared identifier is reported \
> > only once for each function it appears in
> > DEBUG: btf_dumper.c:837:25: warning: this statement may fall through \
> > [-Wimplicit-fallthrough=]
> > DEBUG: 837 | putchar('\\');
> > DEBUG: | ^~~~~~~~~~~~~
> > DEBUG: btf_dumper.c:839:17: note: here
> > DEBUG: 839 | default:
> > DEBUG: | ^~~~~~~
> > DEBUG: make[3]: *** [Makefile:247: /builddir/build/BUILD/kernel-6.2.fc37/\
> > linux-6.2/tools/perf/util/bpf_skel/ \
> > .tmp/bootstrap/btf_dumper.o] Error 1
> >
> > The compile fails because symbol __fallthrough unknown, but symbol
> > fallthrough is known and works fine.
> >
> > Fix this and replace __fallthrough by fallthrough.
> >
> > With this change, the compile works.
> >
> > Output after:
> >
> > # make -C tools/perf
> > ....
> > CC util/bpf-filter.o
> > CC util/bpf-filter-flex.o
> > LD util/perf-in.o
> > LD perf-in.o
> > LINK perf
> > make: Leaving directory '/root/mirror-linux-next/tools/perf'
> > #
> >
> > Fixes: 9fd496848b1c ("bpftool: Support inline annotations when dumping the CFG of a program")
> > Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> > ---
> > tools/bpf/bpftool/btf_dumper.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/bpf/bpftool/btf_dumper.c b/tools/bpf/bpftool/btf_dumper.c
> > index 6c5e0e82da22..1b7f69714604 100644
> > --- a/tools/bpf/bpftool/btf_dumper.c
> > +++ b/tools/bpf/bpftool/btf_dumper.c
> > @@ -835,7 +835,7 @@ static void dotlabel_puts(const char *s)
> > case '|':
> > case ' ':
> > putchar('\\');
> > - __fallthrough;
> > + fallthrough;
> > default:
> > putchar(*s);
> > }
>
> Also reported by Sven Schnelle, and discussed at
> https://lore.kernel.org/all/yt9dttxlwal7.fsf@linux.ibm.com/.
>
> This is for linux-next, it cannot go through bpf-next given that commit
> f7a858bffcdd ("tools: Rename __fallthrough to fallthrough") is not in
> there yet.
>
> Acked-by: Quentin Monnet <quentin@isovalent.com>
>
> Thanks!
> Quentin
next prev parent reply other threads:[~2023-04-14 8:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 12:36 [PATCH] bpftool: fix broken compile on s390 for linux-next repository Thomas Richter
2023-04-12 13:27 ` Quentin Monnet
2023-04-14 8:47 ` Heiko Carstens [this message]
2023-04-14 16:53 ` Mark Brown
2023-04-14 16:58 ` Quentin Monnet
-- strict thread matches above, loose matches on Subject: below --
2023-04-18 8:55 Thomas Richter
2023-04-18 9:13 ` Quentin Monnet
2023-04-19 14:50 ` Daniel Borkmann
2023-04-20 0:39 ` Quentin Monnet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZDkTBjBSWTHhvB3B@osiris \
--to=hca@linux.ibm.com \
--cc=acme@redhat.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=broonie@kernel.org \
--cc=liam.howlett@oracle.com \
--cc=linux-next@vger.kernel.org \
--cc=quentin@isovalent.com \
--cc=sfr@canb.auug.org.au \
--cc=tmricht@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.