Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1672913pxj; Sun, 9 May 2021 01:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOtPNJenONYBUZP0xryOjZyMxW+miIqMTkSaaIGc31OY+HHIl54bwxNrS5wGOGWkIohhdl X-Received: by 2002:a5d:9acd:: with SMTP id x13mr13996465ion.134.1620549156847; Sun, 09 May 2021 01:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620549156; cv=none; d=google.com; s=arc-20160816; b=ijN+RadtcL31pSwTx7guCgOrBzzPruvYUKTLw6sT4Yeur0NGzMr1+z5XhNKlf1lleJ ai7mwwyL/AgpXXpADNb9+hCpGBiKwvEl9xV9P+fdeWows5oF7gaxt07lugeET0u8IgRY Um6Rq5YXzsDWJohq5yOxq1SpdISSQO6MXiKZskv/vKDXskaar0t8N53d29G7Z6klb26E R9n+MlSC/uo4hpRCNgI+bf8/BiPcSTIfN/vE+7jKeWoqJNAJ0HmJ33/IswcrtoQtqPMW MxTRjVCWFtTP3S/Q4Nd66h8m8mZzFlYB4XOFBwX7nZdaGmLs2lic/tz/iC72aL7i914o lM2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bq9TTG4WifnywdMVbI6XigdykptN9YPEmuxbdUawLyM=; b=KQ3AwdgJlvZ1NsDL8ZrXPbSih2ULp1+u5b8y91KDnWt7vgCkhfiCkfLXOG0X62h8bI V/m5/+wzSRO1bkUmATIFHehuXbLwLYKTRG0R7e9jfqVI3PdOaLiF6QjTOQLhuxIFlZs1 SbTnnzTO7yWYRUJgFweffQxrMtwk6BEcOqi3cICEi3dNcc6dtErYnJUmVdwkmONQ73Cd i2kT4n6KqfQGjgtHR7XI1JiNKQGvJwMjUfqfyGQubk+mmMWC3gAs+aLBZCCoIecXFkJS MVu5eZsmwy6uWx+QgNzv55AnaFDu+IaNcPs+PmGybAs1N5FUqI4P4h1GR7JbhaJLSXDP 968Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Eq73xFA7; 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 n4si12050326ion.59.2021.05.09.01.32.24; Sun, 09 May 2021 01:32:36 -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=@gmail.com header.s=20161025 header.b=Eq73xFA7; 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 S229640AbhEIIc6 (ORCPT + 99 others); Sun, 9 May 2021 04:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbhEIIc5 (ORCPT ); Sun, 9 May 2021 04:32:57 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0596FC061573; Sun, 9 May 2021 01:31:54 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id cl24-20020a17090af698b0290157efd14899so8604011pjb.2; Sun, 09 May 2021 01:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bq9TTG4WifnywdMVbI6XigdykptN9YPEmuxbdUawLyM=; b=Eq73xFA7pAj+Z/rQ4Vwp4uOXwhK9vm5REU2YIjTx0rmewbUMOrjHw27MMDQH8Abfhh nPfdcQM8voejhMfKT3nxqgOTmoV1Q4biPyvJDAbvzGJ4mSSLSwQxwG2GXb1lVOdTK54L FjuCiFsx4llp/dTGMjNgUTHs8ORZnsvzQDOpvoVYBIA61QHv0WJSE32MBl0I0nvQNXnT TND4X1vQp32Fuanx+5dItfirlDUGbCrrQRzA0xcfD2A7ZM0jC1apATT0QT/FAVdQPYMP zqh3Gs5ic+Bf4UvaThuB8ys03a4iZKlX9rAW7rWn/IvLRLFHQ1dgxRLTCs0ijHHkBexW qP1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bq9TTG4WifnywdMVbI6XigdykptN9YPEmuxbdUawLyM=; b=fFOLmgSxp1EGR7nOEnh+eQdV+y5UzG6rvAjgRLsFFw3bkH4cV4NrXcskcUCmc/UadN 0HEsNYt6Rj2nOLYpU2vHTwj+PQkncEkwA9GLhkwoBdVfj/m9UMd4qDPjcD4FoCBo7jKo cBcDWq3ZqcY2qsvSOeMlDxNUmS/StbOfMHKnEoJLfdqNOcuB055UHhef72hcDc2yF9GB UxaMyzEvSaolQ9OfwuPj81mIBr0vjWilHmq7FT47LWYzA8IZy1lGmzDa2jOgiP3sJXZJ 5kFHsbtBOpNWTl00ye+yMi8BjA5qdFazagcXcVnHpNtAEn9R7CWFRHalngkasBcx635F /QZQ== X-Gm-Message-State: AOAM531sv17/1ir8Re2onzGlgd0DCz9vK5rxIsuVxPXxrfsPRM2opV5E epWI6sfePwsXbG0zPcebGFZ0VaMXWeUCeqz/ X-Received: by 2002:a17:90b:17c7:: with SMTP id me7mr32501393pjb.96.1620549113495; Sun, 09 May 2021 01:31:53 -0700 (PDT) Received: from localhost.localdomain (host-219-71-67-82.dynamic.kbtelecom.net. [219.71.67.82]) by smtp.gmail.com with ESMTPSA id e1sm8443730pgl.25.2021.05.09.01.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 01:31:53 -0700 (PDT) From: Wei Ming Chen To: linux-kernel@vger.kernel.org Cc: linux-rdma@vger.kernel.org, Wei Ming Chen Subject: [PATCH] i40iw: Use fallthrough pseudo-keyword Date: Sun, 9 May 2021 16:31:35 +0800 Message-Id: <20210509083135.14575-1-jj251510319013@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) 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