Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp174206imm; Tue, 7 Aug 2018 16:23:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPykhEcskQsYH/DyPyhOH7gtR7oyNSS4NW5xHdIgW2NT+ztwwo65O7gZqPMtJollcSjsQ5Cw X-Received: by 2002:a63:f54c:: with SMTP id e12-v6mr318719pgk.286.1533684212735; Tue, 07 Aug 2018 16:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684212; cv=none; d=google.com; s=arc-20160816; b=Jl8ckG+wIyPSrkBaSGDPdu0ZWKZRT7iCaMT1ur8XuIo0M/9y3pCoiDG/skVqp1GUNV /78zNWDEy9bCWxErSRKKTlbPH6mS9kGukpK5surjFabOI42mEMIfOiwYp5B7C954vbYS LgdDQcoARM8C/7tYTXxs17HeevoHKmLf1wyBOV+tZGlL02ADfM4nePbZKIYnwAI+kncu o5IFTtgiKu0n2hWc/PmxeBeXmD+vOuh1FjwCOmyC/BcrUM+GdYPfbJMfk7LbvrDaQg5E Par0BeBFz7qqFhReB6wBYsK0Jsi2mlz9C7sWsBqUp/oiLgaiOTtoVdD37/e+uZqebIQh tRuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4KZ2O5dhe6zCQ7ZLt+TyEkVdHitQlBqMRf0NgLxOepI=; b=cVLP/0c6YQ9xLcrjss7l+pVaqCFJMFyGtyAySMPGVQ9N2iVOIZgDpPsitPGwzhcl5E 8yj2MOUOawZZ9AXIeAL0sKhPgj4Oy50GEKWCufUOhhwjUpgvMhf+b2wPYsEGvX1mM+Rl LBWfHmuAPgHfAzy66OAIOeRPrrxJ2fNssN1i7Jc4Wui0paZ6IvMXY7E6lBW2s8UllvFm C64Vvh7U/TdIirwRNCjFAXEo7vTSevtgkKwLSYYV0fq2Vc3pX2GDNoXT9Ijt7Nr15Sfp XLnnKSwxVrRH610JSKk8+vH7GKTKBbkIt2P5FZ53lkRwL6NPPeCxquydi3sJZiszLl17 42Kg== 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 k7-v6si2336917pgk.104.2018.08.07.16.23.18; Tue, 07 Aug 2018 16:23:32 -0700 (PDT) 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 S1727340AbeHHBjM (ORCPT + 99 others); Tue, 7 Aug 2018 21:39:12 -0400 Received: from gateway30.websitewelcome.com ([192.185.149.4]:38805 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeHHBjM (ORCPT ); Tue, 7 Aug 2018 21:39:12 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id A0E8A2CDBE for ; Tue, 7 Aug 2018 18:22:28 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBJ1fjRZsBcCXnBJ4fJTWx; Tue, 07 Aug 2018 18:22:28 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48100 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBJ1-001vIn-Bl; Tue, 07 Aug 2018 18:22:23 -0500 Date: Tue, 7 Aug 2018 18:22:22 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Jeff Kirsher , intel-wired-lan@lists.osuosl.org Subject: [PATCH 19/33] igb_main: Mark expected switch fall-throughs Message-ID: <1f23933f64740396a518c7bf86a085c295d19759.1533675546.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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.73.102 X-Source-L: No X-Exim-ID: 1fnBJ1-001vIn-Bl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48100 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 132 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 In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 200521 ("Missing break in switch") Addresses-Coverity-ID: 114797 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 636d805..d03c2f0 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -5175,6 +5175,7 @@ bool igb_has_link(struct igb_adapter *adapter) case e1000_media_type_copper: if (!hw->mac.get_link_status) return true; + /* fall through */ case e1000_media_type_internal_serdes: hw->mac.ops.check_for_link(hw); link_active = !hw->mac.get_link_status; @@ -5835,6 +5836,7 @@ static void igb_tx_csum(struct igb_ring *tx_ring, struct igb_tx_buffer *first) type_tucmd = E1000_ADVTXD_TUCMD_L4T_SCTP; break; } + /* fall through */ default: skb_checksum_help(skb); goto csum_failed; -- 2.7.4