Re: [PATCH 11/20] bpf: factor out a bpf_trace_copy_string helper

From: Linus Torvalds
Date: Tue May 19 2020 - 12:36:40 EST


On Tue, May 19, 2020 at 9:14 AM Christoph Hellwig <hch@xxxxxx> wrote:
>
> I don't think we need it as the case of
>
> case 'a':
> case 'b':
> do_stuff();
> break;
>
> has always been fine even with the fallthough warnings. And the
> rest of the stuff gets removed by cpp..

You're right. I read it as a fallthrough because as a human it looks
like there's code in there between, but yeah, the compiler won't
actually ever see it.

So scratch that objection.

Linus