Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1003385imu; Wed, 23 Jan 2019 09:14:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6BZ3Fso/GaDl5FWWB+UCo3kIqkt2iJPrm8nN3L2eh7s6ORAEEgXUoCxPGn/MrADA43Wo7q X-Received: by 2002:a17:902:3143:: with SMTP id w61mr3054973plb.253.1548263652537; Wed, 23 Jan 2019 09:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548263652; cv=none; d=google.com; s=arc-20160816; b=stZn8xCjH0r3oEVLZRCSUUNshdFRDSqnh+JwkScyr+2tXKrJJuIr50aCrWbUDwF7DI svn+objr8WiMI0AIlCcRXx7pVy7gTJCPEyoHVV2A2Pok263sULUCQSaMs9SDIUZDnI66 bX2jC6tiFM3PCBTDYbpy0AhAa+APVP8e8f1z9qmuo6bGLl4jY/9rF16UA0yvdQ6tN8gL 8RqR034M4cNSXce5nNDFZYpUWFTXCtyEdaM93gF0UCrcEkJwQl2393kVmFWzJKvc7OPp n4WCQdRMtpn3ok0XxgOHnkIXvg0OLkMjaMauSj74XEhfcQ9AypvbpCIMi7/HFQ+v83IK mMXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=RwNGxru866C6+30oc38chdZqwhVGcHWtlAc7w6QeG5c=; b=OtBxWjSPZKZhZz1Ux+Cyik9eZd0L4X7fxLpfxMc9+ulc++EqxwKK3bTp3d5oQ5gDM3 q8rWOaqHOvF0S7E9P5GAT6J+q2Sqva8628dVjtt5nMfFIkt0fSuM0jVPjQIfDyCIGBeF cWcJI+bUPiPpRUbY3ZgHE7TOe9a3/o5wShDMZRNE07pUycMQzLax610WeeRfumCGldXB vmzACiPDGsCvnal0hxK672zBmP/h+yohqAbT6k3NBRAV7G8G96u3VRefKxjYKSKEsLgU PHap5SPaMP4xxvlxnklWX1tPh4eEGS1nNkdrmJP5MfocafrE/w8SOjYfjQuz+HucZoY6 xK0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si18806329pfb.231.2019.01.23.09.13.44; Wed, 23 Jan 2019 09:14:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbfAWRLm (ORCPT + 99 others); Wed, 23 Jan 2019 12:11:42 -0500 Received: from gateway23.websitewelcome.com ([192.185.50.120]:29221 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfAWRLm (ORCPT ); Wed, 23 Jan 2019 12:11:42 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 7F7827EC2 for ; Wed, 23 Jan 2019 11:11:41 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id mM3xgvMRT4FKpmM3xgJz1F; Wed, 23 Jan 2019 11:11:41 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=49070 helo=[192.168.1.76]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gmM3x-000EWe-4D; Wed, 23 Jan 2019 11:11:41 -0600 Subject: Re: [PATCH net-next] intel: Mark expected switch fall-throughs To: jeffrey.t.kirsher@intel.com, "David S. Miller" Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190123074849.GA24230@embeddedor> From: "Gustavo A. R. Silva" Openpgp: preference=signencrypt Message-ID: <368769c1-bb6c-b137-14c4-ef0ade488c2e@embeddedor.com> Date: Wed, 23 Jan 2019 11:11:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.130.205 X-Source-L: No X-Exim-ID: 1gmM3x-000EWe-4D X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.130.205]:49070 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 5 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jeffrey, On 1/23/19 11:04 AM, Jeff Kirsher wrote: > On Wed, 2019-01-23 at 01:48 -0600, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> This patch fixes the following warnings: >> >> drivers/net/ethernet/intel/igb/e1000_82575.c:636:6: warning: this >> statement may fall through [-Wimplicit-fallthrough=] >> drivers/net/ethernet/intel/igb/igb_main.c:6710:6: warning: this >> statement may fall through [-Wimplicit-fallthrough=] >> drivers/net/ethernet/intel/i40e/i40e_xsk.c:237:3: warning: this >> statement may fall through [-Wimplicit-fallthrough=] >> >> Warning level 3 was used: -Wimplicit-fallthrough=3 >> >> This patch is part of the ongoing efforts to enabling >> -Wimplicit-fallthrough. >> >> Signed-off-by: Gustavo A. R. Silva >> --- >> drivers/net/ethernet/intel/i40e/i40e_xsk.c | 3 ++- >> drivers/net/ethernet/intel/igb/e1000_82575.c | 2 +- >> drivers/net/ethernet/intel/igb/igb_main.c | 2 +- >> 3 files changed, 4 insertions(+), 3 deletions(-) > > NAK on the igb changes. There is already a "fall through" code comment > which is fine, adding a hyphen does not make the comment any more > readable. > Those comments are not fine. They trigger the warnings I mention in the commit log. With this patch such warnings are fixed. Notice that warning level 3 was used: -Wimplicit-fallthrough=3 Thanks -- Gustavo