Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352107pxb; Mon, 20 Sep 2021 19:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1ZJIhV6VmMDSRIbpdVhgmFl3atc+M8jrCrtpWm2XuQ5TuXF6zDgNmuPIr9gKytLSlXQIO X-Received: by 2002:a17:906:3882:: with SMTP id q2mr32760489ejd.396.1632192539358; Mon, 20 Sep 2021 19:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192539; cv=none; d=google.com; s=arc-20160816; b=v8E1Au6OcoJlLFrN+gfCUxxk0SpKIZ5VbZagDnLSKXNWVLayhR7mraVpNw4KaY36ne lvGiSNOVMp1InNITlFzeJNnmZHGjFx0iNVSZoK2otwESbR9vJKpgvR8QbJMIaNrp5O97 U73+54flwMa7VWl8LAtDWDTf/NSyDXSToer9tzIv3h/1HTnsn1wtM6opF5q68IQsaLle iIQ3Fv5pmiMEtq8AhP9phEob3tJZarCVodAmNP3hQNbdszc4PutlrPOUK6GPPEqNuWZb wYKMxlYRRnrwykhApGrvhONwycI52K0Qc98W3c17fQEnWU2DpJeYzGR9Td2lQc6nDV4i JjSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a5/ZGvVep88fLd1AtJtA4K3AqUP/jDfwmxZvyKjN3SI=; b=Zefyp3WJlJPQaun0rv0e10RMdafkx8KNvv3UXZm2xJ21gJYLOeXSbmH0ztfowltRrF P23ejHwhq8R80WzCNdWiLUV0drPe9lNHOqLyGO8gIspsn1hOPgXronBbci+IFSi45d92 1jmpZUISyNjyOqDk/Dkdw/ElnB2qpevb6ue99vCbIYenoohbjsyS2qT4l9ABERMJ8JXl E98vDP6E21VBJ/VVWV6ejccxzWka7pWzTbPmiHjRiYnqBcXKx4FKzvxNxkAwbsR+oPX/ 8gxU4b/Flt28SBNNCZr66QX30/mQbjdefaI7dLZT+kFk6gU3Dkh4uLP77zzfZ9uGlSVy /fRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xyu7/+bj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si18774679ejv.669.2021.09.20.19.48.35; Mon, 20 Sep 2021 19:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xyu7/+bj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380947AbhITSfF (ORCPT + 99 others); Mon, 20 Sep 2021 14:35:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:48138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379870AbhITSbA (ORCPT ); Mon, 20 Sep 2021 14:31:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6867D632F8; Mon, 20 Sep 2021 17:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158849; bh=O3JhsPU8xl1j9uzXPpoUyD3GXC0aVI2el2Vd4alECis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xyu7/+bj1KPP4xUHdx+C9502T/y4TiCfpwh9iH7R1HkG8UMPA71ozNLYrGjLUyBpt SGyZf3NMseKF1uggEB/XWuk6s4m+b4UNVCjmjMHLEx/l1/Y1zKDthQmputBIf1HzCe gUe64WCOXNGZCmZKxNP8KC/wOLvyla62Np0YXGsw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Westphal , "Gustavo A. R. Silva" , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.10 084/122] netfilter: Fix fall-through warnings for Clang Date: Mon, 20 Sep 2021 18:44:16 +0200 Message-Id: <20210920163918.544849776@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gustavo A. R. Silva [ 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 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/nf_conntrack_proto_dccp.c | 1 + net/netfilter/nf_tables_api.c | 1 + net/netfilter/nft_ct.c | 1 + 3 files changed, 3 insertions(+) diff --git a/net/netfilter/nf_conntrack_proto_dccp.c b/net/netfilter/nf_conntrack_proto_dccp.c index b3f4a334f9d7..94001eb51ffe 100644 --- 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 struct sk_buff *skb, msg = "not picking up existing connection "; goto out_invalid; } + break; case CT_DCCP_REQUEST: break; case CT_DCCP_INVALID: diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 2b5f97e1d40b..c605a3e713e7 100644 --- 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 struct nft_ctx *ctx, data->verdict.chain); if (err < 0) return err; + break; default: break; } diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index 70d46e0bbf06..7af822a02ce9 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -528,6 +528,7 @@ static void __nft_ct_set_destroy(const struct nft_ctx *ctx, struct nft_ct *priv) case NFT_CT_ZONE: if (--nft_ct_pcpu_template_refcnt == 0) nft_ct_tmpl_put_pcpu(); + break; #endif default: break; -- 2.30.2