Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: core: filter: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Warning level 2 was used: -Wimplicit-fallthrough=2

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
2cc0608e 3cc87d03

+1
+1
net/core/filter.c
··· 4660 4660 case BPF_FUNC_trace_printk: 4661 4661 if (capable(CAP_SYS_ADMIN)) 4662 4662 return bpf_get_trace_printk_proto(); 4663 + /* else: fall through */ 4663 4664 default: 4664 4665 return NULL; 4665 4666 }