Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp90609pxu; Sun, 22 Nov 2020 00:40:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPsXOd7BjHaxVi2ymGwwC53zHVxYiEO1R0tHHGQx3n8oLMLt78ZjMIC/POWlQ4fCLjHguC X-Received: by 2002:aa7:d54b:: with SMTP id u11mr43851946edr.341.1606034417711; Sun, 22 Nov 2020 00:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606034417; cv=none; d=google.com; s=arc-20160816; b=UY5EKxqBpuRzJr1gVkCC/x4s2yBdVQ50+u8Br+qN82PW+isNMSO2QmEzYvO39rNAIB I+OKpvz9XapiJ/Z81p/4/Ry43sPMCUplbPl7mujxomtQsq+4MixfrF7XucLYL8WBllUU n4104DNRglhoeQdAKVkN1+r7uJGUt6wwYZ4zVueLnrj7Gtvwsq4Zvgr0r2WDId7uwGLa UYoOMvPlHB1QDysQHUCQTDoZypf3yIR43znOj+WKm5eNeY0pC1sWL71MoNjWesPldbF8 r6vabH8oLdwhDds7QS+oeFw3oKgCDelzMSWGFhnYzaTl9Hb0aE2lH1EuXnp9u3ydtZ// uy8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KSBUEVa1x7/4PC/tS/TFqyMip0/VC+6jUS5QTF5o5IM=; b=uW4IssFiUGqkGRbVX4ER1jCpZGSVRcFlClzr3pa7GNS2Byk13fNTkhjOeqaP0Gdho8 bUJhW4IWOLBGexXhw1c1e374kD5zzb8QqZXFtMxvdGsfXSzes2sNl6tKJFiHcIRLkCUn qSDIneRyDCltqov06mBUm3snz3XJEnJ4K8l0LeVEMiZCaiVz2URlswQOQKnYhrF69xBN DlkzZTA/kfvnSEaNI5n+95lgbM1vcERiQOMm7bkYQraMeRVpxxT5Kz0+DJXlLkJqjNFW SKX9oUakL+5n2AmHVlQ/3EWvNQnQEsOSxmlgoSVbLfFagzvlVH7ml39or10Fc7PMyiVY t/vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s+/oKz3o"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si1387016edd.519.2020.11.22.00.39.54; Sun, 22 Nov 2020 00:40:17 -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=@gmail.com header.s=20161025 header.b="s+/oKz3o"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbgKVIgI (ORCPT + 99 others); Sun, 22 Nov 2020 03:36:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727330AbgKVIgH (ORCPT ); Sun, 22 Nov 2020 03:36:07 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07254C0613CF; Sun, 22 Nov 2020 00:36:05 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id s25so18964608ejy.6; Sun, 22 Nov 2020 00:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KSBUEVa1x7/4PC/tS/TFqyMip0/VC+6jUS5QTF5o5IM=; b=s+/oKz3oldIl1t5BYk68RHZ+d+pyjpZDzMF15rrugvaDNKM7IsCYxhreJ+gfX9T3Mf ERwEHaUyT3Mxm6EsH7sx8lfGaNaXjprvDkfm5fXFlgG4btElOZxogoJoW8HK9glJP11D MmflztiWl7tZcOD4MiwakyZuXyu+5qJHJuCb+S6yy8dLyePLrOzPRN/zn058KCxaZpdq PNI0Ze+RX1wStPfYdhLkXoM/3YXx73MbaxTyvKiY5nZ/4UBiiFz+atauZXBCU8+fGgTo UiSRogmLW92SoTanXB+tLX+xSQvCWxuC0mTdDfTcKy4r9fLUNcY/ZKIpanJIYKdNWPN6 zDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KSBUEVa1x7/4PC/tS/TFqyMip0/VC+6jUS5QTF5o5IM=; b=beB/YPP6JCeuDg0aOTHCzADLh4lvd3yav/9L9LKw9jtXfdbvDeCbQRi0O2wxiWBN8Q 4DTDYwNKLjnRoeAIzh9KYu0DPJwx/uLIEbpEXKIy3asow8uVLLf2oJaHcqgmjrdQg3nC ac1VKE3eme38wuokTYtAYQFNpNSaR378nT0ArhLCQDPx29WvGxZipNhJNUXSKQFvlPA/ bPrlrh9cpY8hWGFE9Du1WPnZt13/XgxYijx5vsOK7G3TPpvZj6HusgrkSSj7qR+VDyTV 6QcEzgRIjo6JDOGBen4vzE1ZFnT1pb5tFYFtVzyRGs/I+1DJ5pWb3WxsMDXivijT/p3J n/RQ== X-Gm-Message-State: AOAM5320F3u0Z2mKsRQkrRqIbppU3dFLGPDKx1IMT4Lje9zMEI4kLpvv dBU3SO8P2hkVh8yRPxFaqjh5ZZdu7eA= X-Received: by 2002:a17:907:7253:: with SMTP id ds19mr8344354ejc.166.1606034164513; Sun, 22 Nov 2020 00:36:04 -0800 (PST) Received: from [192.168.0.110] ([77.127.85.120]) by smtp.gmail.com with ESMTPSA id p1sm3379016edx.4.2020.11.22.00.36.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2020 00:36:03 -0800 (PST) Subject: Re: [PATCH 044/141] net/mlx4: Fix fall-through warnings for Clang To: "Gustavo A. R. Silva" , 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 References: <84cd69bc9b9768cf3bc032c0205ffe485b80ba03.1605896059.git.gustavoars@kernel.org> From: Tariq Toukan Message-ID: <0ba92238-2e31-b7d8-5664-72933dc76a7b@gmail.com> Date: Sun, 22 Nov 2020 10:36:01 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <84cd69bc9b9768cf3bc032c0205ffe485b80ba03.1605896059.git.gustavoars@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.