Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp169190imm; Tue, 7 Aug 2018 16:16:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPysZkItDt0DGreZP+PyTpZpa5gwxQPP72ZBmpovU+JyGL7bZq4gNQCCeKrILtMnDdXUvwsk X-Received: by 2002:a63:f344:: with SMTP id t4-v6mr296676pgj.428.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=VeRd1vUhGJ0zfEo6f+4fwk4RlkabBdJ0ld3IzJmqJKzJH7Ld5eRC+R3a81RxtHaxUq +oPcu2daEQ9iXArkX7F3GJmK3ZSM19bl6FplOcto8K5GB0QRFD9DGsGrYglqu74gFG22 je0DHR5VZx0+xm24kTQ9pvn5pKhYlVXrMsqVZ4aLuU/gewwOfaD1KXq+pzoIjY4HXRIM kAuWxTUssB/Rp4hTk6g7iBo02sfYc6PaqSJBXuEIhZiH9n0YcxadHNIUE4bFxVUmcz0F UM8JnDbY6Or1x9PlwLtJmZuT7x5/jKl5qoKsdUu8xMGpnnZazK/VNF8l0S1H6qN0YFA8 ikQw== 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=lZFtNLFSny8RCFIALBj5sEbEdnxxa11bBSI6jxGl2Rg=; b=TqdGNleGQFtGy6Qu1ayT+f32d0qsraNqI8+Exq2bFcePOzN08G94btLtD2fiX1wQKS Vy7+/8Ef8nqoyNL9p8deNU+YtMs2x7fTuSkN+OWIW0PO6HoonoxU2CuLq5oHQe8LFTRt ts+u0dA3zBmhtSFC2oSjNdNYCR47Iun/JNLOVYcjIA16ostmqPhBMkId1vXfN42q7Lhw O2EK5l8/N0iJjRdA/yN7m3scLWx/ydadgvfKTvJ7Vj7Guym4muu69pldMnCPU4Y0K3Jg qp3OXajz20Fx9XfWj97v9MVV8SLt9H+6BTnBu8EfZStXFHCHpyHM4xiGUC9gIvTmRi8s DZIA== 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 28-v6si2461504pgk.111.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 S1727240AbeHHBaf (ORCPT + 99 others); Tue, 7 Aug 2018 21:30:35 -0400 Received: from gateway34.websitewelcome.com ([192.185.150.114]:12515 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeHHBae (ORCPT ); Tue, 7 Aug 2018 21:30:34 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway34.websitewelcome.com (Postfix) with ESMTP id C7B7F8FEB19 for ; Tue, 7 Aug 2018 18:13:21 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBAAf6zkxbXuJnBAEfW1SB; Tue, 07 Aug 2018 18:13:21 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48054 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBA9-001qdV-80; Tue, 07 Aug 2018 18:13:13 -0500 Date: Tue, 7 Aug 2018 18:13:12 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Ganesh Goudar Subject: [PATCH 06/33] cxgb4/l2t: Mark expected switch fall-through Message-ID: <5c518e1d2aae769d7b4527f9c9a61726b3f3dbd9.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: 1fnBA9-001qdV-80 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48054 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 69 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: 114910 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/chelsio/cxgb4/l2t.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c index 77c2c53..301c4df 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c @@ -231,6 +231,7 @@ int cxgb4_l2t_send(struct net_device *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 t4_ofld_send(adap, skb); case L2T_STATE_RESOLVING: -- 2.7.4