Skip to content

Commit c8dc798

Browse files
malaterreborkmann
authored andcommitted
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>
1 parent 583c531 commit c8dc798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/bpf/cgroup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
718718
case BPF_FUNC_trace_printk:
719719
if (capable(CAP_SYS_ADMIN))
720720
return bpf_get_trace_printk_proto();
721+
/* fall through */
721722
default:
722723
return NULL;
723724
}

0 commit comments

Comments
 (0)