Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp168194imm; Tue, 7 Aug 2018 16:15:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzlJYd3kvtR8+rhaMO7lF4f1gRlxuF4ux4Ml6eyzQb4u6cwWYgCUm1SLuu7clQeBEzoebW0 X-Received: by 2002:a62:cd3:: with SMTP id 80-v6mr367135pfm.184.1533683701518; Tue, 07 Aug 2018 16:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533683701; cv=none; d=google.com; s=arc-20160816; b=u/eCe3GfYpPp2dUTyqVhYSex0IHNdcdc2gEfzAgqR8EzfQFm5cPSJ+PwQdRr0I74wR Y3Ehxub2Kz2Thb+OpbEnNQI5CscBu/7U/11MQ3MqX7M95zknXdUiBQFAX7I4iSWwJS6k sKzUlYWDMp9KHYzcmjJsC6KXD8zAAUjd9Z6P8HthkpSfcnq67kTi42Q0F1oV0XRqZ8HB p/J/UOT3anUvE/faDjphn3giITSs9ma6VNNAyYrrY4vTvNj6mYKFPrp33Y1ruWB6S5V4 4FoX70rGlqIFmgbd2LJXi2HMAH8SWAPRZXZ4O/r4KKHSIWlKdqSff0y9OCqSWSxpRabj KB/A== 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=oARmnp8/FYWiYlKk3g/rHb7FqvFM/jv+QG38TCTQNJU=; b=KfdLBLwgUeMIC7pGwEUKFlPp3zlyEo3HzZDISIytmC+mTd959AAmuWhHF0Y3n42TFa cbPA2UQ209lG0kkSHvSUZS135JQf5ZNiil7gBbLjQPVWuzeu8eUNSsBvfeTUkXnsNN1h E00TO5c26SEKbTIoGD201KaegCH1jqGQQPBOc8EbdO9QCwSV5dwJhvn60ZvCcgPEGFCc HUg6/5c6gQ8OBsrl0vfA9xmFnAWNj4Q9HKxiJZr32WU1kE3Q3UcnT4MHtZQgGOkek80O jr9VwhRnf+aGliGv8KNRiofVaHikQU+ZxQ/OFuFqe6PIRBF/TMhK47SmZt2pdPZyCWyV kDCw== 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.14.47; Tue, 07 Aug 2018 16:15:01 -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 S1727194AbeHHBad (ORCPT + 99 others); Tue, 7 Aug 2018 21:30:33 -0400 Received: from gateway30.websitewelcome.com ([192.185.148.2]:18868 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeHHBac (ORCPT ); Tue, 7 Aug 2018 21:30:32 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 5B15E2A021 for ; Tue, 7 Aug 2018 18:13:51 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBAffizgcBcCXnBAhfJ1hF; Tue, 07 Aug 2018 18:13:50 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48056 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBAe-001qsH-KB; Tue, 07 Aug 2018 18:13:44 -0500 Date: Tue, 7 Aug 2018 18:13:44 -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 07/33] cxgb4/t4_hw: mark expected switch fall-throughs Message-ID: <6d4a64df6599edf8785e5acdeb21cd613d23ce0d.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: 1fnBAe-001qsH-KB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48056 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 73 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: 114777 ("Missing break in switch") Addresses-Coverity-ID: 114778 ("Missing break in switch") Addresses-Coverity-ID: 114779 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 2d9943f..5fe5d16 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -7504,10 +7504,13 @@ int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, switch (nmac) { case 5: memcpy(mac + 24, c.nmac3, sizeof(c.nmac3)); + /* Fall through */ case 4: memcpy(mac + 18, c.nmac2, sizeof(c.nmac2)); + /* Fall through */ case 3: memcpy(mac + 12, c.nmac1, sizeof(c.nmac1)); + /* Fall through */ case 2: memcpy(mac + 6, c.nmac0, sizeof(c.nmac0)); } -- 2.7.4