From patchwork Wed Jul 18 15:58:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10532753 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4FD60601D2 for ; Wed, 18 Jul 2018 15:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 403AB29905 for ; Wed, 18 Jul 2018 15:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 318F129914; Wed, 18 Jul 2018 15:58:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4033F2990E for ; Wed, 18 Jul 2018 15:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730987AbeGRQgg (ORCPT ); Wed, 18 Jul 2018 12:36:36 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:26546 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730885AbeGRQgg (ORCPT ); Wed, 18 Jul 2018 12:36:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1531929484; x=1563465484; h=from:to:cc:subject:date:message-id; bh=BGLK+AOIvlSOH5ZQVBHYESPTS5HU7o56kwHY/3v+iSI=; b=dnDcC1YZJllF41gkcv5dctwhUzvcfFCmdeXLp2WDqJS2dupqih4HfLJp SssOTcTluuPS4YhhWWxlFl6wbQsKyhvbOiSvKq7hMdJ9cHCv2869a+cIv 6yl+HKE+4bYbuFUoC/k4kY95x6iGyh/5I6qsMHIuLTp9ojsLv9fkt4753 RqMTdkO0wyLg4r+hEJD+7BdtYMsksFRCG232A4SGaZU89n9zB3hTS0X2B 1e9rIJ81flcnQRl7FHyx1o7g+/kzPnUd7pa8LCSA4CoaSXWTveZIYsMaP DfQsWtNTZoJxzVILiv2J9P8+cycCBNBeGQds40Hus7RZuVecIu0zCKMLX w==; X-IronPort-AV: E=Sophos;i="5.51,370,1526313600"; d="scan'208";a="85085384" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 18 Jul 2018 23:58:03 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 18 Jul 2018 08:46:33 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 18 Jul 2018 08:58:02 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Selvin Xavier , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna Subject: [PATCH] RDMA/bnxt_re: Modify a fall-through annotation Date: Wed, 18 Jul 2018 08:58:02 -0700 Message-Id: <20180718155802.11012-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that gcc reports the following warning when building with W=1: drivers/infiniband/hw/bnxt_re/ib_verbs.c:2404:4: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Bart Van Assche Cc: Selvin Xavier Cc: Devesh Sharma Cc: Somnath Kotur Cc: Sriharsha Basavapatna --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 492c750f7ed6..dd800d153aa2 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -2409,7 +2409,7 @@ int bnxt_re_post_send(struct ib_qp *ib_qp, struct ib_send_wr *wr, default: break; } - /* Fall thru to build the wqe */ + /* fall through */ case IB_WR_SEND_WITH_INV: rc = bnxt_re_build_send_wqe(qp, wr, &wqe); break;