Re: [PATCH] bpf: reduce compiler warnings by adding fallthrough comments

2017-02-14 Thread David Miller
From: Alexander Alemayhu Date: Tue, 14 Feb 2017 00:02:35 +0100 > Fixes the following warnings: ... > Reported-by: David Binderman > Signed-off-by: Alexander Alemayhu Applied, thank you.

Re: [PATCH] bpf: reduce compiler warnings by adding fallthrough comments

2017-02-13 Thread Alexei Starovoitov
On Tue, Feb 14, 2017 at 12:18:05AM +0100, Daniel Borkmann wrote: > >kernel/bpf/verifier.c:2019:24: warning: this statement may fall through > >[-Wimplicit-fallthrough=] > >false_reg->min_value = 0; > >~^~~ > > > >Reported-by: David Binderman > >Signed-off-by: Alexander

Re: [PATCH] bpf: reduce compiler warnings by adding fallthrough comments

2017-02-13 Thread Daniel Borkmann
On 02/14/2017 12:02 AM, Alexander Alemayhu wrote: Fixes the following warnings: kernel/bpf/verifier.c: In function ‘may_access_direct_pkt_data’: kernel/bpf/verifier.c:702:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (t == BPF_WRITE) ^ kernel/bpf/verifier.c

[PATCH] bpf: reduce compiler warnings by adding fallthrough comments

2017-02-13 Thread Alexander Alemayhu
Fixes the following warnings: kernel/bpf/verifier.c: In function ‘may_access_direct_pkt_data’: kernel/bpf/verifier.c:702:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (t == BPF_WRITE) ^ kernel/bpf/verifier.c:704:2: note: here case BPF_PROG_TYPE_SCHED_CLS: ^