1 From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
2 Date: Tue, 23 Mar 2021 00:56:20 +0100
3 Subject: [PATCH] netfilter: Fix fall-through warnings for Clang
5 In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
6 warnings by explicitly adding multiple break statements instead of just
7 letting the code fall through to the next case.
9 Link: https://github.com/KSPP/linux/issues/115
10 Acked-by: Florian Westphal <fw@strlen.de>
11 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
12 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
15 --- a/net/netfilter/nf_conntrack_proto_dccp.c
16 +++ b/net/netfilter/nf_conntrack_proto_dccp.c
17 @@ -397,6 +397,7 @@ dccp_new(struct nf_conn *ct, const struc
18 msg = "not picking up existing connection ";
25 --- a/net/netfilter/nf_tables_api.c
26 +++ b/net/netfilter/nf_tables_api.c
27 @@ -8369,6 +8369,7 @@ static int nf_tables_check_loops(const s
35 --- a/net/netfilter/nft_ct.c
36 +++ b/net/netfilter/nft_ct.c
37 @@ -528,6 +528,7 @@ static void __nft_ct_set_destroy(const s
39 if (--nft_ct_pcpu_template_refcnt == 0)
40 nft_ct_tmpl_put_pcpu();