Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp176295imm; Tue, 7 Aug 2018 16:26:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwUwB8/KZ8J1X1EtQInxka5G54zuAPMfeGvPD13ecor+22Pg1nSfCgdLjlPx1AsjN74Z1hK X-Received: by 2002:a63:ce43:: with SMTP id r3-v6mr305914pgi.439.1533684397588; Tue, 07 Aug 2018 16:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684397; cv=none; d=google.com; s=arc-20160816; b=z/fQNVA9uRe8iPNKAYx69c63m+1pd8lgYY4F7OReYEFSv7G42Kg1pxXaGrXP4C6dQA pSVY9LqoycytIeQxHFBgyd1KucqMWozni4xY4aJYZDgURm/JRw4l9+u75YTkvtI4KaMf r8XdiWuK+BL9yVtDAAP5DuEWQ0viB3vhLY542Ai30poDsKY0JItANqKVP66dGEq+9lcF DdrwiAvIq45MhAPdzRLZoDNseGy0MFRSqRhf3qVZG5zST+RG3c34uD4Dknsp9HmORqfD hEBOe/eG4FHVazPEJ88R+Ol0U72+IXY1/Qe6e1aJU6+7c7g49GkZ5jS+1CVkWhnEBhBe u8BA== 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=ztc0hLVvM7YhmcGTgwYos9WNtHqhv46fM/yBuPDFBbE=; b=m+spbEU0EIugQghbbupk2silZ64OmHQioapm45/zHgyX1G0q6CYf3HGrYclHgMbzCz h9pEAaRi23T6MM/3oisQfY9yhsOv2l4wxyvoJTR65ydvqoygqrEL+C0vXfaKXsdN5fEA D72t5M/IBC+j/dHc9xlggnHfS0e+WKvkkEuB5EWO586nRKbrxCiyJfzXFV9GT1ABfxT8 OoE5ipVosOZjG4iQiTN/73XrJUhzHqF49gETFkRyAdWVpB7fTrkKWrsqdBXNC98UH1K7 xBktjDmTaQcgC8NSlbeNi7GI570+OSKFpvnqvJD1gBTqDylgS5MDfWbRaR7BxQne0ZOl uPlQ== 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 s12-v6si1040888plp.464.2018.08.07.16.26.23; Tue, 07 Aug 2018 16:26:37 -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 S1727416AbeHHBmO (ORCPT + 99 others); Tue, 7 Aug 2018 21:42:14 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.233]:13653 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbeHHBmO (ORCPT ); Tue, 7 Aug 2018 21:42:14 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway22.websitewelcome.com (Postfix) with ESMTP id BD3AE1B05D for ; Tue, 7 Aug 2018 18:25:29 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBLzf7Yd4bXuJnBM0fWaCn; Tue, 07 Aug 2018 18:25:29 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48122 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBLy-001wia-Li; Tue, 07 Aug 2018 18:25:26 -0500 Date: Tue, 7 Aug 2018 18:25:26 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Saeed Mahameed , Leon Romanovsky , linux-rdma@vger.kernel.org Subject: [PATCH 24/33] net/mlx5e: Mark expected switch fall-throughs Message-ID: <3c523c58a8e3f3d240d4ff9363d672fb977c9d93.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: 1fnBLy-001wia-Li X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48122 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 156 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: 114808 ("Missing break in switch") Addresses-Coverity-ID: 114802 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c index 1881468..ad6d471 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c @@ -91,9 +91,11 @@ bool mlx5e_xdp_handle(struct mlx5e_rq *rq, struct mlx5e_dma_info *di, return true; default: bpf_warn_invalid_xdp_action(act); + /* fall through */ case XDP_ABORTED: xdp_abort: trace_xdp_exception(rq->netdev, prog, act); + /* fall through */ case XDP_DROP: rq->stats->xdp_drop++; return true; -- 2.7.4