Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp178522imm; Tue, 7 Aug 2018 16:29:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwj/CZ8FlOTvwq2kIdXRR1tfbpWjQtYI3c4rNjFS1CMghwxjcK1FWtbpPBqu4SNw8sy72J3 X-Received: by 2002:a63:fc44:: with SMTP id r4-v6mr320434pgk.169.1533684598802; Tue, 07 Aug 2018 16:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684598; cv=none; d=google.com; s=arc-20160816; b=oO676mOoVJhKwhlx9R9ceVqoZm0bsNkL004Vk84d9AbFqM95QZIobqymmi7m/0aClQ KVHleWVjhFdR8cMfXTwo+e6w313qtzH1EyDavMlpvVT9HcETC1t8TtzY4NdY4Esi++Ey ve4lchWP36KeqT//rHS/UA/Ra2vqYRbRepG9HfeiCrhT+XFxbUs0Q3WkxswQLE7MuWqH qd5LaROORBQVUBSvN0ol+1v3tyS+4csjJW36kGrJSWwmapRHODNHHuGuNI5J8O+0qFdK 3NC0S8Eo/7Jdf5YPA5nVt1N9bzjUTPQeKaQ+q0OXmPwZ5ke53RHyqpk7DIWvQ0Z+n0Pr O9oA== 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=sIzhhuwVmjEyEYMydmoCzNjKwx4ZxlnrnVH8aq+PUAw=; b=cZGcM/geWRQ5rKn9oDKknmX9GCPhS9lAKsKX/XnwbKu5xUDcDoyjd5lvE7s41a0HQP hQiXI281gHYuzwV8HHjvvnXc4T8+Q94xvMb3YGm2zP57iuv4vvD8RTj2YwcgJ1RWqrUG SwTrKcF7XzcD4MK1ZPRtKYYaGWgLbFkDzwRMJNeHsM0P/Ew54KMQ7k1Kwad/3uSRyUHp 0JEy3GQlG2aCc4zrHDOQLCKmfpaFvpoCmWRyscAA+RR4draATvl95tLX+dYDobV7KEM2 xYtPzQTw/DI+92HaTmvBkcLkgQhURnuz1/wo84HcCifgE7WsikUnU+5Tfe372cdCJZba 9jbg== 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 o23-v6si2305540pgm.170.2018.08.07.16.29.44; Tue, 07 Aug 2018 16:29:58 -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 S1727348AbeHHBpI (ORCPT + 99 others); Tue, 7 Aug 2018 21:45:08 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.129]:23496 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHHBpI (ORCPT ); Tue, 7 Aug 2018 21:45:08 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 2E4CCA4FB for ; Tue, 7 Aug 2018 18:28:23 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBOnfjj4iBcCXnBOofJkx0; Tue, 07 Aug 2018 18:28:22 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48130 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBOn-001y4y-6W; Tue, 07 Aug 2018 18:28:21 -0500 Date: Tue, 7 Aug 2018 18:28:20 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Harish Patil , Manish Chopra , Dept-GELinuxNICDev@cavium.com Subject: [PATCH 28/33] qlcnic: Mark expected switch fall-througs Message-ID: <43bf00764c0d67757207669b2482557695c1cc9b.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: 1fnBOn-001y4y-6W X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48130 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 178 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: 1410181 ("Missing break in switch") Addresses-Coverity-ID: 1410184 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c index 7f7deea..3b0adda 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c @@ -351,9 +351,9 @@ static int qlcnic_82xx_get_link_ksettings(struct qlcnic_adapter *adapter, case QLCNIC_BRDTYPE_P3P_REF_QG: case QLCNIC_BRDTYPE_P3P_4_GB: case QLCNIC_BRDTYPE_P3P_4_GB_MM: - supported |= SUPPORTED_Autoneg; advertising |= ADVERTISED_Autoneg; + /* fall through */ case QLCNIC_BRDTYPE_P3P_10G_CX4: case QLCNIC_BRDTYPE_P3P_10G_CX4_LP: case QLCNIC_BRDTYPE_P3P_10000_BASE_T: @@ -377,6 +377,7 @@ static int qlcnic_82xx_get_link_ksettings(struct qlcnic_adapter *adapter, supported |= SUPPORTED_TP; check_sfp_module = netif_running(adapter->netdev) && ahw->has_link_events; + /* fall through */ case QLCNIC_BRDTYPE_P3P_10G_XFP: supported |= SUPPORTED_FIBRE; advertising |= ADVERTISED_FIBRE; -- 2.7.4