summaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-01-16 20:35:29 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-01-17 16:52:23 +0100
commitc8dc79806e7f6cb6b0952aae1ce626c39905ad7e (patch)
tree75852badf36cfa63603e6916d0aa6747c1caec4b /kernel/bpf
parent583c53185399cea5c51195064564d1c9ddc70cf3 (diff)
downloadblackbird-obmc-linux-c8dc79806e7f6cb6b0952aae1ce626c39905ad7e.tar.gz
blackbird-obmc-linux-c8dc79806e7f6cb6b0952aae1ce626c39905ad7e.zip
bpf: Annotate implicit fall through in cgroup_dev_func_proto
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warnings (W=1). This commit removes the following warning: kernel/bpf/cgroup.c:719: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 'kernel/bpf')
-rw-r--r--kernel/bpf/cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c
index 9425c2fb872f..ab612fe9862f 100644
--- a/kernel/bpf/cgroup.c
+++ b/kernel/bpf/cgroup.c
@@ -718,6 +718,7 @@ cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
case BPF_FUNC_trace_printk:
if (capable(CAP_SYS_ADMIN))
return bpf_get_trace_printk_proto();
+ /* fall through */
default:
return NULL;
}
OpenPOWER on IntegriCloud