Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1485284pxb; Fri, 20 Nov 2020 10:35:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQWKPa1NGL0Xo4nve1DDWZULZontA3f4JueAKu5geAZAYSeAQr2y1UZjqeqGZ5qxX3Jr6i X-Received: by 2002:a17:906:2ddb:: with SMTP id h27mr33610430eji.213.1605897319162; Fri, 20 Nov 2020 10:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897319; cv=none; d=google.com; s=arc-20160816; b=pfi0JmcyLmdX28aJQE0sWi3hS9gmxwv/Le+LphAcuWjC1/1rKT5p+TnxpxOR6U746X hyZQB88UhJks9IpPleGxHRpPnPnlznA5NUycNrDoJNmtj+zrUuA6Y43b69J/DZE/m6kF Sctt3RsmmmoMYAUa8JmMvA5UGnpAZNs9uOlWh9lmOxVDAz/4GMG1HJ3xyIMBAAxWJI3s +e8ijo14e7glUcO+WWPaQydZ08cABN/SwfG7h2cVzphC2mCnGrY/oBOEMUPjpODMNM0q PtCX1COU+lDEP9J8R69XEXyO8P4gHZE3tVNyEg80Ga3jfBKppPJpXFYQvOiZZ25JR8wO 0kCA== 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=nJbUqrtEtWTmRFjSBVF1JmV8T8Y2Z35ELzAd9d3zkaM=; b=UOqJX1yQtoWYPpFwPlFc1sEZVvuQrAMgDNuuWmdlYazg/NJzS1saYDEkECB65qdu8R T1mjlMRUAAAGXE7CsVU1ygoewcWoFBttuoR9jxdbl6fdP+bY90vkT/0QaufbYpjA8T56 PAXcB1t9XzFSo85ozOwbG6fXgBPa/mYSinxaP2D42MA2Q39aXaEhXcPzefKmsMOGsjGU DMTxB7v6Doqkr0iQSE7rjBNau1qzgAkwtV9xsmME4TWb0UmtGq5yhharHRQQboiIgERO NFxM3T4uKtwSaJrBoJEu9/jiaJmvQKpqSKc1irA7Acjjf3xcQ96pILQOZhGcFSMXW+S6 nkzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YE4KnDQk; 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 w3si2122368ejj.208.2020.11.20.10.34.56; Fri, 20 Nov 2020 10:35:19 -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=YE4KnDQk; 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 S1730569AbgKTSbC (ORCPT + 99 others); Fri, 20 Nov 2020 13:31:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:50432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729850AbgKTSbC (ORCPT ); Fri, 20 Nov 2020 13:31:02 -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 C4E7B24137; Fri, 20 Nov 2020 18:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605897061; bh=WXJEfqRj94HpGAo2eaWvHvqPElV8GZV+WC7FXBXG4DU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YE4KnDQkCFztMDeRF09ZPZtRZbJybx4zNL3956kFoUonKqcY67RxpgAGwo0d+P9xu nmpsw8Dkv2ffoVIXorC50bc2vW6F6QhhDLFRRdkpHAJOkREa1Ev/n0IIo5pruiqsun J+nOVgTFVXHWXiymvIrUMziVH/FmU9mpgIW3GqRY= Date: Fri, 20 Nov 2020 12:31:07 -0600 From: "Gustavo A. R. Silva" To: Tariq Toukan , "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 044/141] net/mlx4: Fix fall-through warnings for Clang Message-ID: <84cd69bc9b9768cf3bc032c0205ffe485b80ba03.1605896059.git.gustavoars@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.27.0