Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1214269pxu; Mon, 23 Nov 2020 14:54:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJysx4yGsLzvD+IP/7JWNdNBKOW5mt20UWN2a5RPTKmKTRQcC7QmavxW4OLqm+oYE2Jg5/Ql X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr1436407edv.226.1606172049189; Mon, 23 Nov 2020 14:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606172049; cv=none; d=google.com; s=arc-20160816; b=BoQexgJHrW+E4o4hYLhU0SVGcCc0YA1sfaHpIFck01XbLj4pdDdzpZyiLrI2zo/WrL 3eHPNpWrcRPZy1+d/BUjX4kNPv6c/ERT5Rni4zCEQTqU/XGl2K3EpylkqMsoujczk2Lm pA2gVlOq6COVQUGH5HkjTX5dXXQzZ5XnQzhRczIvzUYI8v9VEC9HTDm/7aWnEtEHB5N4 6O242zkUG2THeZDNHysZ0klK0aDMVufiCNIf/PxwcOFEGZkCnDmOMz4X6LKFbzUQytxA DRX+yl/YrWO87XjO0T42mX6iLUIwZSuN6Jz3KGlEngGtJNEzPsFsjOJgqnS4CCqdOn8v 07PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=w/X61tFjEjxdUgDdkUrXeX0fTxCw3llDd/Oxgm5zuz0=; b=nQDa7ygwhRV1nsf+k0qSi4idg3QhV1Vpakq3i/IjgdfxoA46/OnqJJxe6htX7h19hH FzO7W8uUXJZOdCY+Tw+1YayCh83yC5aYxLQC90FQSveyELCRJJK3I2nFmN7HhwHWzlyq 8qGZuIU3LaEIqnaaNMQWqrEEv0PzLSTePmLi2bsCPjwVXFWClw3DCsUx31FyyGpiqsdU 4eQBqcJOq5PPAUuXKyfytADAlpkO5Z2UC5Ue+zL+dViy/0ptoN+K3tCBBFWJwPhz0whf V9gsByQS+IKBf0gET+djR3S62b5d/JXUovyvGXQGe2Y2SLkcJUwkmfcbevI8ofgHYmOa Um9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HMAZyDQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si7394855ejg.543.2020.11.23.14.53.46; Mon, 23 Nov 2020 14:54:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HMAZyDQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732840AbgKWWtI (ORCPT + 99 others); Mon, 23 Nov 2020 17:49:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:50350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731277AbgKWWtH (ORCPT ); Mon, 23 Nov 2020 17:49:07 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA28520717; Mon, 23 Nov 2020 22:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606171746; bh=+hKfuSHtqGsRaUlQQNwPdgKj27lIN/ygWLqzb1ZJ66Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HMAZyDQeQSAs0W/bPxyPtzCxLRZ7s1hQvX1mNyHpGtFuOECj+L0yEo5YVevuFWeGh Z8peswtZ2QfhlPvauJAwl+Op6VMKOgsvxotsve8pH/sbISHmSMXs8Rpv+J3ioOt8Sf /1yTBx5QByhZiNZYtZ5DqRBzEzAC+0mVbirGmHSE= Date: Mon, 23 Nov 2020 16:49:20 -0600 From: "Gustavo A. R. Silva" To: Tariq Toukan Cc: Tariq Toukan , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 044/141] net/mlx4: Fix fall-through warnings for Clang Message-ID: <20201123224920.GL21644@embeddedor> References: <84cd69bc9b9768cf3bc032c0205ffe485b80ba03.1605896059.git.gustavoars@kernel.org> <0ba92238-2e31-b7d8-5664-72933dc76a7b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ba92238-2e31-b7d8-5664-72933dc76a7b@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 22, 2020 at 10:36:01AM +0200, Tariq Toukan wrote: > > > On 11/20/2020 8:31 PM, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of just letting the code > > fall through to the next case. > > > > Link: https://github.com/KSPP/linux/issues/115 > > Signed-off-by: Gustavo A. R. Silva > > --- > > drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c > > index 1187ef1375e2..e6b8b8dc7894 100644 > > --- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c > > +++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c > > @@ -2660,6 +2660,7 @@ int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave, > > case RES_XRCD: > > err = xrcdn_free_res(dev, slave, vhcr->op_modifier, alop, > > vhcr->in_param, &vhcr->out_param); > > + break; > > default: > > break; > > > > Reviewed-by: Tariq Toukan > > Thanks for your patch. Thanks, Tariq. -- Gustavo