Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp180088imm; Tue, 7 Aug 2018 16:31:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwCJTHS7mFavBQ+CDY4g4WLAs8773KO+cbWCJfOLQwP54RmvyHiM4Z39z0c70lgIvh695J2 X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr336334pgg.370.1533684702548; Tue, 07 Aug 2018 16:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684702; cv=none; d=google.com; s=arc-20160816; b=dskM/Q5TaKQESZ2Ug8gt72ICq9VTEiTqELCiCbrIIjfwfAogbldvwQMaCQiG2/S1+/ 0eeo5lqo54wl6+iBiz3K6rGKtGRAYEmDIMpv3x/E63EYiwI38ea0S8E3BxDvNqRx1n7b IjtFieQKVKAEph3YAV5qhmrMEOCKfRh+k43u3Vq8vrEWxUIaBcRIyLgCTB+ilWwQ6Vmv 2hvDLqJKM9UEPn+FmpA9lJW1eKifjCZ7h2gHJ1EDnicmGNRetbRm2P+XMRrCHWQjZRQ0 jQEr2h0mEbQ2D4j1pxgGsDBZlGL6WOi5OhSvkvEAfzWT5PtTHJ86n4zEABGwjrLEWbam Hbaw== 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=GY1v5qX6LnOuLU/KHmTHYtTCNZmzbdRHrBye4ute6jU=; b=BdU3i+Vqq/qxkne3+Ax7B3TuOFtn9xoWwgDihus2RABUcAxiuUdMGmj2gopnVC2KK+ fHNr9WtlaTORORyJZpzNF0dI5gsFiY6Am9Ue0BYeJOxrtBHmpDgoMPW4sV5wQ3eS59K0 3WXS2sooxr4GON/vsQ8irmAXuq7S/YTgqrViTrucJw0YIeaF4TZhgyzMuBsx0jI4W4Ui +sYR1SVxhyLT38hUeqOXEr3JJhgHonWEnRJ/eGJx89zBUp8poZA+YQXmz6TFyUMZdRp3 GjOHec9Ao8w/A3B5M+jVx9vBkEOOLemo57zYb6ZFYQndiMKTj+T4uLDzNp/DMbRgB9jN sWwg== 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 p15-v6si2329760pll.42.2018.08.07.16.31.28; Tue, 07 Aug 2018 16:31:42 -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 S1726540AbeHHBrN (ORCPT + 99 others); Tue, 7 Aug 2018 21:47:13 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.107]:45739 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbeHHBrN (ORCPT ); Tue, 7 Aug 2018 21:47:13 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway32.websitewelcome.com (Postfix) with ESMTP id CAC1520244 for ; Tue, 7 Aug 2018 18:30:24 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBQlf7nJkbXuJnBQmfWooI; Tue, 07 Aug 2018 18:30:24 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48148 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBQl-001zCt-7f; Tue, 07 Aug 2018 18:30:23 -0500 Date: Tue, 7 Aug 2018 18:30:22 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Byungho An , Girish K S , Vipul Pandya Subject: [PATCH 30/33] net: ethernet: sxgbe: mark expected switch fall-throughs Message-ID: <2443e17bb9d17024a5f886a05fe91d25a210f7c8.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: 1fnBQl-001zCt-7f X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48148 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 190 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: 1357414 ("Missing break in switch") Addresses-Coverity-ID: 1357415 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c index 542b67d..c9aad0e 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c @@ -319,6 +319,7 @@ static int sxgbe_get_rss_hash_opts(struct sxgbe_priv_data *priv, case TCP_V4_FLOW: case UDP_V4_FLOW: cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; + /* Fall through */ case SCTP_V4_FLOW: case AH_ESP_V4_FLOW: case AH_V4_FLOW: @@ -329,6 +330,7 @@ static int sxgbe_get_rss_hash_opts(struct sxgbe_priv_data *priv, case TCP_V6_FLOW: case UDP_V6_FLOW: cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; + /* Fall through */ case SCTP_V6_FLOW: case AH_ESP_V6_FLOW: case AH_V6_FLOW: -- 2.7.4