Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp169189imm; Tue, 7 Aug 2018 16:16:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx5y56nHkdgMoqDdHjo8tv3GdFR4HV20bghKZN+/vi+894fLA4bl6EQzwJADg1cvEA5oGRp X-Received: by 2002:a17:902:b40c:: with SMTP id x12-v6mr302105plr.163.1533683774760; Tue, 07 Aug 2018 16:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533683774; cv=none; d=google.com; s=arc-20160816; b=iIrzmqoLoyncb/tYbLYw0XYHbzDUjsi2CyIWpJhnJrF9+h4Mj1ZYgAAJkt1yeWnSWQ VJLg9nvxRRSNdCNfZ0cJgWYxh2wjvlbSJf5B+bZzt5Bweashj3znlYSlYWPsN34Z8qoM 04g0riKv7GumNHjGphbng0qloJjgvv22lSiF7C6awxWLNw/k4OkKebPUATMA/LCTQA9A LyV+JsUenCo8SXYjj54lr4/NQA0X+XTg6QxEUWPKDijcJAPmz0fLuFUlAnP4r/Wdc7JK 5cusQ4NmD2fy0Lty1Va50P/D1FildxAYwSZnd4jKCze6hK20tZ82YoZ+oiK1uvXEYFwE q17g== 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=S6Wv4wEIB30l4M9XyJoOE59hceTEr32feVRw2fluCjM=; b=lB9PzauOsuympNhT/SdToE8zGmlZ4FmGlP12Gg+136YDEIycdiBSYtVW7ArFCaGU1N ZlYiDijoj3nvVEtUVwX3JNSMOqDTUl7DL11knZiVjEGIMjZakzI/pai9qeWIty7MItj4 EDoTCLqprRGf1Y8aBKOI3Oaj9lrLoAe/bufnIJSX4ntsCUcn8cQJ2gd2T8YxKQJUSH3Y guT8z+RNqFBYM4wpWoE6RwZVlUvaHKd2sfZGbVBOHNvW7GmAf1qtu6iyLc/lfMkIevvj Ww7PvxDnh9+Bw47TTVDr5QtOfIxD+i9zK1TXYGaD7bDUYVewvMgP8EVDqAsr4yFDFJaq fsHg== 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 n128-v6si2778764pfn.90.2018.08.07.16.15.57; Tue, 07 Aug 2018 16:16:14 -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 S1726680AbeHHBbI (ORCPT + 99 others); Tue, 7 Aug 2018 21:31:08 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.129]:22965 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeHHBbI (ORCPT ); Tue, 7 Aug 2018 21:31:08 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 561D68AB2 for ; Tue, 7 Aug 2018 18:14:27 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBBDfj1V2BcCXnBBHfJ3Xq; Tue, 07 Aug 2018 18:14:26 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48058 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBBD-001rAX-AU; Tue, 07 Aug 2018 18:14:19 -0500 Date: Tue, 7 Aug 2018 18:14:18 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Santosh Raspatur Subject: [PATCH 08/33] cxgb3/l2t: Mark expected switch fall-through Message-ID: <2c55cbf706fd10b0e5b3f1a8397a244cbe1fd335.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: 1fnBBD-001rAX-AU X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48058 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 77 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: 114780 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/chelsio/cxgb3/l2t.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb3/l2t.c b/drivers/net/ethernet/chelsio/cxgb3/l2t.c index 248e40c..0e9182d 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb3/l2t.c @@ -136,6 +136,7 @@ int t3_l2t_send_slow(struct t3cdev *dev, struct sk_buff *skb, if (e->state == L2T_STATE_STALE) e->state = L2T_STATE_VALID; spin_unlock_bh(&e->lock); + /* fall through */ case L2T_STATE_VALID: /* fast-path, send the packet on */ return cxgb3_ofld_send(dev, skb); case L2T_STATE_RESOLVING: -- 2.7.4