Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp173836imm; Tue, 7 Aug 2018 16:23:04 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx9oDbsGituCc5jO5kkPxLyd1E/rUYmgRbUSUDryYdldnbCOJfx53b3zqHqdfFF4MViGX7P X-Received: by 2002:a63:d244:: with SMTP id t4-v6mr309254pgi.335.1533684184576; Tue, 07 Aug 2018 16:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684184; cv=none; d=google.com; s=arc-20160816; b=vD9AwRlkSusqPDlmnu2MPdvxtHPn4hTS7rh9qOCCojVaEotk/u/ifDdVmaT/ENrLoa vOuwXbBZIX1+R25+Pot9cuwKjuugnpd+eStgXqbNwGvASfkHtccvHYsqpEfJvhSE6rai AGAvxkwhAutDAyDBYPzdSnpmDLH5RLJKAy2nR0pxD5kqfg5UxbUZXFp4BFzyqtkNhMcu YBToTFf3dpeGgU8L1IvtI4njdIDn8/GZCG29KqnM+ozJbRZCqJXEeL6pzYPRtMO37za1 ak61pK0To4hfWUmycCqPVH/1Ul6TNs2KB6FaDf4HfyDyzPnvnfBMNjF+NNQ6jS3T5M5I x7pg== 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=QNPNvi/VQH9SvFFXeST0Sqtjpha/9kpndi2Qfphaikg=; b=V+57XxPNFov0UexAhFWVVf2DFKCWK2han9ke4Lx0DHWm2j7rYeskNJxaUhrdRIX7ho 5Vj45EEmG5cAOTnscyd2Zn0WAPYjClITc8w0gRCqdQpj6XVW52EokqeDduc8QKMC8mTj YnSuwTm3EVTwulZ8XfDupbTMKJ1QkiMyE08ohjYfvxsB62f7lupt09j21mFuAzF+OHMz K0KZAHtjb7etWY8kRQSwa6Q5oFx6WFKR48sg1kUW07VkPWKcawCiN6c92odThplNfF40 rtIy2uufQP+neJof4EVtP/b1ST2x80C3y5/8YOhuoogh6ndkapsuw6iKNfVf6/LlXv+o qkUA== 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 g6-v6si1930533plp.204.2018.08.07.16.22.49; Tue, 07 Aug 2018 16:23:04 -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 S1727312AbeHHBi3 (ORCPT + 99 others); Tue, 7 Aug 2018 21:38:29 -0400 Received: from gateway36.websitewelcome.com ([192.185.179.26]:20705 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbeHHBi3 (ORCPT ); Tue, 7 Aug 2018 21:38:29 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway36.websitewelcome.com (Postfix) with ESMTP id B757F400C8B79 for ; Tue, 7 Aug 2018 17:24:36 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBILfjPDxBcCXnBIOfJRCo; Tue, 07 Aug 2018 18:21:45 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48098 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBIL-001uwV-8u; Tue, 07 Aug 2018 18:21:41 -0500 Date: Tue, 7 Aug 2018 18:21:40 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Tariq Toukan , linux-rdma@vger.kernel.org Subject: [PATCH 18/33] net/mlx4/en_rx: Mark expected switch fall-throughs Message-ID: 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: 1fnBIL-001uwV-8u X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48098 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 127 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: 114794 ("Missing break in switch") Addresses-Coverity-ID: 114795 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index 3360f7b..a1aeeb8 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c @@ -795,8 +795,10 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud goto xdp_drop_no_cnt; /* Drop on xmit failure */ default: bpf_warn_invalid_xdp_action(act); + /* fall through */ case XDP_ABORTED: trace_xdp_exception(dev, xdp_prog, act); + /* fall through */ case XDP_DROP: ring->xdp_drop++; xdp_drop_no_cnt: -- 2.7.4