Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp171088imm; Tue, 7 Aug 2018 16:19:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxK6PP6oO8AgNKZuMqW9KpDt0Knwb6Du4fpziKhZvQmmeRVmICOUhmG95NrUe3Cg9Lk6vXI X-Received: by 2002:a63:4857:: with SMTP id x23-v6mr331052pgk.30.1533683940127; Tue, 07 Aug 2018 16:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533683940; cv=none; d=google.com; s=arc-20160816; b=PB/a4pSYDtP/b9fXR//0QL7CqlGCHJX2lZmOltqo1COP7k0q5/m35Wq+kHwRwhhZCQ cLePjIdQ5eVaY8O4EP3cKnO0Kd6H6mkc9jMglu0rfV0tuRUQXRvoX0siM9k96MmAffO4 sg3fFEPyxUk2+zfQ5Xr55AoivdiF+a2OUjqaSgI0NNPZtj7ZjcWIiaIL/tcImxweO7vr ACB+yFBGLWoiMaZJgsvwXqkRV1vXt0RpoQHsZYY4JgDx9LY7Jp0EMkn7z5nNU2fGYJA5 eJbIS2pXGgSqtER54pvZlESpD9FFZ+nEqV2Mm6C2U4dmttHJW+XAnvahsTuhboYrSVKs sRlQ== 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=/SyJYTkBkj3/2ly4O1AG/uZCoqtQ4c67VwSvJh3KMxQ=; b=dqsMOPUyGb7h5W8vU/3AVMVaqusPbttgo3/eIYyPzW44Gbsv2Jl7Qqs3VFMc80pER3 1nZwwGOd6PmePZboCevlltFXBuwxOAvFmbl2DJYdYVXDB2WuqbxxRErUyiQIul2qS6YW /fiu8alubcT4BkzMI4tMOU+FfMMmN30c6t+q7oqO77rtdL2zqeIpr3XWIuGmHmuFVzPU 1+HTiiJwcMoxTfKSPjl1CnHCYZ0y63I63ZuTrS5gokcNbVDQBwOMhzfMiHbSvO23T6ok PoV6UzEKDXjGgJLlaK2BDYW24AjJqtdFKyqPDMWkstVgthhvcWmB38NfnZVjmc95qK0G DCjA== 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 b19-v6si2778299pfm.5.2018.08.07.16.18.45; Tue, 07 Aug 2018 16:19:00 -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 S1727133AbeHHBd5 (ORCPT + 99 others); Tue, 7 Aug 2018 21:33:57 -0400 Received: from gateway24.websitewelcome.com ([192.185.50.91]:29186 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeHHBd5 (ORCPT ); Tue, 7 Aug 2018 21:33:57 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway24.websitewelcome.com (Postfix) with ESMTP id D0E2B6B42 for ; Tue, 7 Aug 2018 18:17:14 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBDxf7CZZbXuJnBE1fWEEK; Tue, 07 Aug 2018 18:17:14 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48070 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBDx-001sdq-0M; Tue, 07 Aug 2018 18:17:09 -0500 Date: Tue, 7 Aug 2018 18:17:08 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Sathya Perla , Ajit Khaparde , Sriharsha Basavapatna , Somnath Kotur Subject: [PATCH 12/33] be2net: Mark expected switch fall-through Message-ID: <4c7f61c6d526a824ba37b2b1dca095fddd8c0a75.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: 1fnBDx-001sdq-0M X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48070 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 95 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: 114787 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/emulex/benet/be_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index 7f7e206..3f6749f 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c @@ -575,6 +575,7 @@ static u32 convert_to_et_setting(struct be_adapter *adapter, u32 if_speeds) break; } } + /* fall through */ case PHY_TYPE_SFP_PLUS_10GB: case PHY_TYPE_XFP_10GB: case PHY_TYPE_SFP_1GB: -- 2.7.4