Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1747406pxj; Sun, 9 May 2021 03:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpXMVFP+Cjci/AJ22hw/SyLcVZhYAgh/QHuiGeJJREc/409nN253KjWdGHOKMIwQ7Wiu+i X-Received: by 2002:a5d:87c4:: with SMTP id q4mr13598990ios.141.1620557737980; Sun, 09 May 2021 03:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620557737; cv=none; d=google.com; s=arc-20160816; b=fGMXyscyG5cXRs+dejnI01RxcYys6ZAuHw5CndSHmJXrKfUaXZKynL0og/iCQIXXJe ogVDnDwTRPioUfzKH1Law3rWvK1/g+SKJgCjHT9m8kY9lUusm6n2kpLybm1M3LZG+5MF +KNN0peUzcLQA+6BmlJbhHuPh0Z8/AjoldaTCgvoWJFKYdKxLWv7y9CHGAgtXXu6RtGE xbAs+dZ7lV7E+rp34VGA4clkWpl5EZCcFTWQVj5D2LyYX4iGpdAD+wTksouvNhq448rP 3SepcwA2l6GyjB6no02789ymfy8qxrlx/4irrhTTA4M4E9Y0mdTp01h0mILNab8BeRzy ymSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aupehvV2fnzmTCV4YTWoI6/kXIoi/eEF4xgDigoeMQo=; b=zZJvMLVdhSvET7Ahx0iTRvPWXcxwgs6tJcgQ2kwfi6y5FBAxfa+daD5pnP1mAJ8hvd L3d+67IEhxfyAUoqmJzduRHCNvPuu4kmpD25uSt2afm9iON+TN0f3S/U7BLl6YWZeIJJ jEeL2ycQWm8kuHA7eGtGFVNKzAhAi4KIIMsBDKOG5MdevijOz+NDjHTyly7pv5KeKz5p 2IdT1lmIrWQI6aQh4FV6Be5MXyTc8Cjjx5BQFJnxvewsBflLaO0Pp/dMVJDTci9aG/hN MKXMCqvSayhuEQlYLODuwhhwCFfg1E+qVcmnj5fVhkcpq/Z9JyfhqLDfPM5ryPHJd3M5 VArw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ullut+s0; 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 a2si12864766ilm.87.2021.05.09.03.55.03; Sun, 09 May 2021 03:55:37 -0700 (PDT) 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=k20201202 header.b=Ullut+s0; 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 S229650AbhEIKvM (ORCPT + 99 others); Sun, 9 May 2021 06:51:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:49640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbhEIKvL (ORCPT ); Sun, 9 May 2021 06:51:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0653461424; Sun, 9 May 2021 10:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620557408; bh=GngOjC6k8lCrzwT8wRaDWgh3sX8bZvsp0XPX4FZfRwo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ullut+s0iLthN42nUHHKrYyZX5dOhD54zy6JuX4/ylmlKkwbfBiNEJ9Naasw3KW4U j7C+uxZGpjRNoMfeeBRaCKvZSmZIFcVlwbcYZfaANMn2j4NLNU7dV5op5w1PqW+N47 9m0T7WE0FzgMd1iExBlIGHPE2t9yPnpJsO3JGfdUsPo8wm2B/X9YvKMuYt83PwCidL 35N99+h9mzJnf0A6HBBvPytOCEsfU39pBXBmNpiTGz49DHWx88WtmCF6GQTkS0dVnf Ql38tD580+v96lNvBYKKeBZGgkBc9SVKGhjV+QnjF7Xb067OS+4Okt2CkB+Zv1t0/r csoO9HwVYzunw== Date: Sun, 9 May 2021 13:50:04 +0300 From: Leon Romanovsky To: Wei Ming Chen Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [PATCH] i40iw: Use fallthrough pseudo-keyword Message-ID: References: <20210509083135.14575-1-jj251510319013@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210509083135.14575-1-jj251510319013@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 09, 2021 at 04:31:35PM +0800, Wei Ming Chen wrote: > Add pseudo-keyword macro fallthrough[1] > > [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by: Wei Ming Chen > --- > drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 1 + > drivers/infiniband/hw/i40iw/i40iw_uk.c | 1 + > 2 files changed, 2 insertions(+) What exactly are you fixing? "case" without any code doesn't need "fallthrough". Thanks > > diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c > index eaea5d545eb8..c6081283217c 100644 > --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c > +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c > @@ -2454,6 +2454,7 @@ static enum i40iw_status_code i40iw_sc_qp_init(struct i40iw_sc_qp *qp, > return ret_code; > break; > case 5: /* fallthrough until next ABI version */ > + fallthrough; > default: > if (qp->qp_uk.max_rq_frag_cnt > I40IW_MAX_WQ_FRAGMENT_COUNT) > return I40IW_ERR_INVALID_FRAG_COUNT; > diff --git a/drivers/infiniband/hw/i40iw/i40iw_uk.c b/drivers/infiniband/hw/i40iw/i40iw_uk.c > index f521be16bf31..e1c318c291c0 100644 > --- a/drivers/infiniband/hw/i40iw/i40iw_uk.c > +++ b/drivers/infiniband/hw/i40iw/i40iw_uk.c > @@ -1004,6 +1004,7 @@ enum i40iw_status_code i40iw_qp_uk_init(struct i40iw_qp_uk *qp, > i40iw_get_wqe_shift(info->max_rq_frag_cnt, 0, &rqshift); > break; > case 5: /* fallthrough until next ABI version */ > + fallthrough; > default: > rqshift = I40IW_MAX_RQ_WQE_SHIFT; > break; > -- > 2.25.1 >