netfilter: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 08:42:09 +0000 (02:42 -0600)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:32:58 +0000 (12:32 +0100)
commit449e8b2459fcc9c498bff80dfd198330f3914702
tree83b928a442409a47a931f597fdb1a68f86fc3700
parenta282d6e830af77f0f536270ad75926dd0bf5d5c4
netfilter: Fix fall-through warnings for Clang

[ Upstream commit c2168e6bd7ec50cedb69b3be1ba6146e28893c69 ]

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_tables_api.c
net/netfilter/nft_ct.c