From patchwork Fri May 28 19:58:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 12287439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9928FC47087 for ; Fri, 28 May 2021 19:59:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64690613B5 for ; Fri, 28 May 2021 19:59:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64690613B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0J9YMK6GtCyrINNyv2N/QBKX7c7BknsZ1bF1V9gRlg0=; b=xArmBprVRrwD/4 owQmQwD0vQoe+RTyxCBAodu+9HRX8odOs/UFy950DPjYAHyYFTGy9fjTzKfakzfyt0twbHBQE58fZ teqhv3WXAN1+7/NTKlLODYueecLvGpddiTwJ13FmnWIcV+wCGWJZJAvnn63aeMJpT31s8G67pRipd Ni4uLgNt2kDBo2AzzXl32HD5oWYUpEpi7yvRap3CLEfaaA0QkRTGTz8+6hw92yeewx4+5COmOSu4c GrZ3cCsem+I1ZLTmhTW9Uy1ldoOjz9xEpx6+FB4t/G7SZVabLtPINrEqBjEo2ED5SqsiCb0lSMDIZ JyRHCg56LCZDU9pqSpaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmibx-000kxh-LM; Fri, 28 May 2021 19:57:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmibt-000kwQ-VE for linux-arm-kernel@lists.infradead.org; Fri, 28 May 2021 19:57:35 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A27B76139A; Fri, 28 May 2021 19:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622231852; bh=tQpTxrP2joGOYQdqOzFop8WIaDhpH3bLD1I/70SrXG0=; h=Date:From:To:Cc:Subject:From; b=WCauMO5ihg0wfEB80CFuTyAeRgG33OTri97341Ag7I1KxKxMbTj8+xZIRqiurLfg9 ZYDGHeC2PubIwrX8RBvYTGBD9Q5IOsecZ3HsWWOoLPeBeHAa33kuhr3lP92TFzg9S/ fGh6J5fg+a9wu168fnz0ww8Ic7/+0t+pvDzy1vAHHatrRGbqA3R53qxg0XLshplsCf 5BDN5UD3eMHlLqfXUmUrk5WUC1MwHVK42Kb2zCzAQfw2hXNVXbFgqjUtwaSaHNGcF0 RK/WkOELcSmXHMHo52JwUln3GWH+iLN5RaRD2Pb3JClboh6IV76ynOb9h4Ginzz/UV la+LOGu8vYwqg== Date: Fri, 28 May 2021 14:58:31 -0500 From: "Gustavo A. R. Silva" To: Radhey Shyam Pandey , "David S. Miller" , Jakub Kicinski , Michal Simek Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] net: axienet: Fix fall-through warning for Clang Message-ID: <20210528195831.GA39131@embeddedor> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210528_125734_069112_805E0EEF X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding a fallthrough statement instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva Reviewed-by: Kees Cook --- JFYI: We had thousands of these sorts of warnings and now we are down to just 25 in linux-next. This is one of those last remaining warnings. drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index b508c9453f40..e29ad9a86a3c 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1543,6 +1543,7 @@ static void axienet_validate(struct phylink_config *config, case PHY_INTERFACE_MODE_MII: phylink_set(mask, 100baseT_Full); phylink_set(mask, 10baseT_Full); + fallthrough; default: break; }