diff options
Diffstat (limited to 'target/linux/generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch')
-rw-r--r-- | target/linux/generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/target/linux/generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch b/target/linux/generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch deleted file mode 100644 index 0aadc2411b..0000000000 --- a/target/linux/generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch +++ /dev/null @@ -1,44 +0,0 @@ -From: "Gustavo A. R. Silva" <gustavoars@kernel.org> -Date: Tue, 23 Mar 2021 00:56:20 +0100 -Subject: [PATCH] netfilter: Fix fall-through warnings for Clang - -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> ---- - ---- a/net/netfilter/nf_conntrack_proto_dccp.c -+++ b/net/netfilter/nf_conntrack_proto_dccp.c -@@ -397,6 +397,7 @@ dccp_new(struct nf_conn *ct, const struc - msg = "not picking up existing connection "; - goto out_invalid; - } -+ break; - case CT_DCCP_REQUEST: - break; - case CT_DCCP_INVALID: ---- a/net/netfilter/nf_tables_api.c -+++ b/net/netfilter/nf_tables_api.c -@@ -8394,6 +8394,7 @@ static int nf_tables_check_loops(const s - data->verdict.chain); - if (err < 0) - return err; -+ break; - default: - break; - } ---- a/net/netfilter/nft_ct.c -+++ b/net/netfilter/nft_ct.c -@@ -528,6 +528,7 @@ static void __nft_ct_set_destroy(const s - case NFT_CT_ZONE: - if (--nft_ct_pcpu_template_refcnt == 0) - nft_ct_tmpl_put_pcpu(); -+ break; - #endif - default: - break; |