summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-01-16 20:35:41 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-01-17 16:53:03 +0100
commitc61c27687a5abce11431e6de1adb6e36099b9859 (patch)
tree368a6955adfff450f42397a57e85110e5db6177d /net/core
parentbpf: Annotate implicit fall through in cgroup_dev_func_proto (diff)
downloadlinux-c61c27687a5abce11431e6de1adb6e36099b9859.tar.xz
linux-c61c27687a5abce11431e6de1adb6e36099b9859.zip
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 <malat@debian.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/filter.c b/net/core/filter.c
index 2b3b436ef545..d9076e609fca 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;
}