kernel: bump 5.10 to 5.10.43
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch
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
4
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.
8
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>
13 ---
14
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 ";
19 goto out_invalid;
20 }
21 + break;
22 case CT_DCCP_REQUEST:
23 break;
24 case CT_DCCP_INVALID:
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
28 data->verdict.chain);
29 if (err < 0)
30 return err;
31 + break;
32 default:
33 break;
34 }
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
38 case NFT_CT_ZONE:
39 if (--nft_ct_pcpu_template_refcnt == 0)
40 nft_ct_tmpl_put_pcpu();
41 + break;
42 #endif
43 default:
44 break;