From: Mathieu Malaterre Date: Wed, 16 Jan 2019 19:35:41 +0000 (+0100) Subject: bpf: Correctly annotate implicit fall through in bpf_base_func_proto X-Git-Tag: v5.4-rc1~1752^2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c61c27687a5abce11431e6de1adb6e36099b9859;p=platform%2Fkernel%2Flinux-rpi.git bpf: Correctly annotate implicit fall through in bpf_base_func_proto There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warnings (W=1). To preserve as much of the existing comment only change a ‘:’ into a ‘,’. This is enough change, to match the regular expression expected by GCC. This commit removes the following warning: net/core/filter.c:5310:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre Signed-off-by: Daniel Borkmann --- diff --git a/net/core/filter.c b/net/core/filter.c index 2b3b436..d9076e6 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -5309,7 +5309,7 @@ bpf_base_func_proto(enum bpf_func_id func_id) case BPF_FUNC_trace_printk: if (capable(CAP_SYS_ADMIN)) return bpf_get_trace_printk_proto(); - /* else: fall through */ + /* else, fall through */ default: return NULL; }