Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp173314imm; Tue, 7 Aug 2018 16:22:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxomxMqfapOsRKDCD05db2b/FPx2Is87RLbfhgJIuGTkrqPDDGimjDJZKXrQySG0w8neDzD X-Received: by 2002:a63:ce43:: with SMTP id r3-v6mr298029pgi.439.1533684138321; Tue, 07 Aug 2018 16:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684138; cv=none; d=google.com; s=arc-20160816; b=z2NWZYmn0awn+JIbp8JCjWG031Wpuy/9rK0RAfEpURSWoMiKm48amPli3y2Xrmwafe JbcjUxA7ndX6RkUHmT+RnS/s4jBNIwEGCJZhonDBBmzhitd5rFY9IJOlqrEl20Suixud RabebQRIPgczuwDGh0+n4SnY3MraUA/ouN/RMa/YgXzsPx4td4vY5VrP1pKnDOPI9cBA RIc83Hcu8WFnaJfgWfs//yFmBQABV/VsBvf9xSu2j7CBseRi6GlehbY3XBFBg+VPr098 mGYg+FPOfpJq4nlG8NUMrt9TqfZIVbuL/nf4LTD17/o5D95wiKSb6mHXIDZA0b2acjiS JNag== 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=GFNgbl6maD9j2dMl7Fq25zrPtc+GEYa5SJ+gi6Nz5zM=; b=mfGzqO47nJwY+kzqn0ytsSK49AUcNv03MLGPu0UiD4P596AJUntmxUmZrp4NPAb78I Jw+NkA0LZbb1t/fZAjGY1L8ipHFJXP8a7woveuobK2J9gA8iB6g9GpBoHIDslVWRujpg wC3ek3WkrojODs2WfEemYAFnPg366DQ10p1w71wt+46C6k6dbRXmqwJe5lvcac2igbuH nmvneYOgnuEX/YU7tVDc9Wzz+jafYnIOazT7gaNdRumNT/atUhnSFoAwfiLzWztdZE6b JCNUnwjgkF3spX4vjTLnjOfqpq91XqxE4blRgk9NDjfyCjHWVzkatNrCr9xi1T6WDRNQ ZrZA== 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 s3-v6si2010288plb.270.2018.08.07.16.22.04; Tue, 07 Aug 2018 16:22:18 -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 S1727267AbeHHBh5 (ORCPT + 99 others); Tue, 7 Aug 2018 21:37:57 -0400 Received: from gateway36.websitewelcome.com ([192.185.179.26]:44173 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbeHHBh4 (ORCPT ); Tue, 7 Aug 2018 21:37:56 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 07DA9400C98EA for ; Tue, 7 Aug 2018 17:24:03 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBHmf7NKlbXuJnBHqfWOwl; Tue, 07 Aug 2018 18:21:12 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48094 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBHm-001ugI-6x; Tue, 07 Aug 2018 18:21:06 -0500 Date: Tue, 7 Aug 2018 18:21:05 -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 17/33] net/mlx4/mcg: Mark expected switch fall-throughs Message-ID: <36bde39221c9fc3bcf1a8697c5da2a6887d0398b.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: 1fnBHm-001ugI-6x X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48094 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 122 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: 114792 ("Missing break in switch") Addresses-Coverity-ID: 114793 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/mellanox/mlx4/mcg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c index 4c5306d..ffed2d4 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mcg.c +++ b/drivers/net/ethernet/mellanox/mlx4/mcg.c @@ -1412,6 +1412,7 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], case MLX4_STEERING_MODE_A0: if (prot == MLX4_PROT_ETH) return 0; + /* fall through */ case MLX4_STEERING_MODE_B0: if (prot == MLX4_PROT_ETH) @@ -1441,6 +1442,7 @@ int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], case MLX4_STEERING_MODE_A0: if (prot == MLX4_PROT_ETH) return 0; + /* fall through */ case MLX4_STEERING_MODE_B0: if (prot == MLX4_PROT_ETH) -- 2.7.4