Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1488098pxb; Fri, 20 Nov 2020 10:39:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNgQllHq1tF5VeAvsruOAmld7qV/VpsQhG7v22SKO2C+xjqQlUXtky5H96qDIZMCZ9jSRA X-Received: by 2002:a17:906:3958:: with SMTP id g24mr34849013eje.360.1605897597555; Fri, 20 Nov 2020 10:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897597; cv=none; d=google.com; s=arc-20160816; b=djpXKL0RDxxmMl/9RjqW6vu5l7SbhlZBKgqDi1OTSkOlOkH/9FbfPDKzsksdq8iqaz 9WaS/g6vGRBxmrWIbFI2JTXUkniouJW6qSwfunO3yEEQ0jTx+L6nxifM4v8BKgMFGUjs JQyg7tWPxL1S2BatoleLvG1EcFWuAeVX8NTaYc486y4UUI/UQ2i4QaVo15e2gfVNjXCY QYgfMZDj3lPHywUduyZ+3kQQOFHUdswiX9uZqld2dyRZoWUXzm2NYgggFr1uCtrZ7jSC cxQ0idFpLwZr1TeadC4yfu54F7JIER47bmQJbPg/NSgHH758RVZCs4JtKSskBMo726sv 6rsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6BWxGOjUv2ZH/d56tZ2eynZO7s8WSpoxfBh1BLN+B1g=; b=rQDaUWd2yJf0DlMg57RWDpkUS9hfy0RDuww/lYBH8oz4EA68ymZq1fl2ZUiuMjxdMn psdbPmsumFNXP9HSlLBM0hQ4MrJgR34Nlkk/ewhxoL31yqxC5Ru2cHoSE2Lv9lZPg9hX itgNGWmr5Sn+5IW0HSSEs9GZDtsheWpmUvtYQG++7bVMPbYJU2oN5wXl6fXykOHTV5RW ZxZxPEE7SQhfFw9iEW9W9R67GadcZUEQcYOOH5yF2Yxu8014dCRduaxjDH6FKmDbALE5 iYf2M5j0ClQq4Hwpn1ZH2mYuGqSB+hmOl6IWeOcCbymNrFFVQ/JV2b0PtORdrF9FxJMR sWJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Vrw2eCE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si2085923ejg.380.2020.11.20.10.39.34; Fri, 20 Nov 2020 10:39:57 -0800 (PST) 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=@kernel.org header.s=default header.b=0Vrw2eCE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731264AbgKTSiH (ORCPT + 99 others); Fri, 20 Nov 2020 13:38:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:56424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731242AbgKTSiH (ORCPT ); Fri, 20 Nov 2020 13:38:07 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50D3B21D91; Fri, 20 Nov 2020 18:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605897484; bh=AjVdgvoWHF4+7F4kqNwapbEv2+b08/vs3SGIF6KZ0xY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0Vrw2eCEIJHv4F3Ai3KizrOhjAFnHljhFWbl7x7NUKr1xsevHhanwFpxAcJ1aCi+o GxglCu4RAyvHDUDgw/RwzGKusB4KqUqdrLfycVS1dB6Oe5Dx9s+jMhiihNmv0g23Bf QTlO/f0AfJcSAr410uJU7zsylWYUz01kgKdPCOPU= Date: Fri, 20 Nov 2020 12:38:09 -0600 From: "Gustavo A. R. Silva" To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 108/141] netfilter: ipt_REJECT: Fix fall-through warnings for Clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/ipv4/netfilter/ipt_REJECT.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/netfilter/ipt_REJECT.c b/net/ipv4/netfilter/ipt_REJECT.c index e16b98ee6266..7dbb10bbd0f5 100644 --- a/net/ipv4/netfilter/ipt_REJECT.c +++ b/net/ipv4/netfilter/ipt_REJECT.c @@ -57,6 +57,7 @@ reject_tg(struct sk_buff *skb, const struct xt_action_param *par) break; case IPT_TCP_RESET: nf_send_reset(xt_net(par), skb, hook); + break; case IPT_ICMP_ECHOREPLY: /* Doesn't happen. */ break; -- 2.27.0