Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp175954imp; Wed, 20 Feb 2019 17:05:49 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib4BDi/JkHjVgewMZVB5wHoIjjETDg6NL65YqFfvqy9EN93g7An0XyMocWwiFeaYUU4ZOZO X-Received: by 2002:a17:902:8346:: with SMTP id z6mr35413205pln.74.1550711149138; Wed, 20 Feb 2019 17:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550711149; cv=none; d=google.com; s=arc-20160816; b=g2fqGcAtR8av9OGRWpraWe3kjC8lI3DwIf/MP1n8RMyF8HRnDdizkFWnDKm3rkJu6p WKCvP7cQRCgfu5fkySRgoXI619zMDyOUY4mVxIq97CpYYx1FR8maqFpB+HqBAYPH/25Z AhcEoX22hQqlK3v2t6JAZYvNJ5pXEF665cXt00LNHgp2oBK7Usb9bpMqt34jqXJSKunO baiouh7UX73DABslZk2DbpXQFTrqgM6UDMbG/CZQ7UWBC0db1Qv6TVCMFFx1DMYIV+qO wQrVaRc0BbJ6EmJjUT9C/cZWnPMHLb9jd6p1drOvykrFKZrKFzoFUA9FgtxYr+LAXJgJ 3OIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=eW209asXtkqMhJyZKGhbof5PIr8Td0HuT6E46sN+Snc=; b=zX3Rqvoand5AaEeTb6p9SjDo7a9SN5CmCOkUeCafioZ4YwzssQUq1SLKUL76O/IuYd cD71MC9yFGejMuhy/FvLTYfZ3SdGcbvf1RFzOYCl/agEUffCGgFTvLTTFNK9udg4lTMd B8IZXlpukzoOKf17uXHVcuO+miuKEFQH7OLqCE01j92KtIkh1EgseQ1Gh/BV3M6S42Hw pFRv3JR5KYlM1ue8YAhOZJM9iM1Q4t18jLvXJroTUQESk6bFWa0MOgD9jKX1tWSXHnM1 bX92935Bmh0f7nL5fg3Edi9z91EGF2+qfylvcwOSIdyidexEf+Zs4LEckV9/DXeEqL9D gsXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91si21218656pld.411.2019.02.20.17.05.33; Wed, 20 Feb 2019 17:05:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbfBUBFE (ORCPT + 99 others); Wed, 20 Feb 2019 20:05:04 -0500 Received: from gateway22.websitewelcome.com ([192.185.47.109]:24286 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfBUBFE (ORCPT ); Wed, 20 Feb 2019 20:05:04 -0500 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway22.websitewelcome.com (Postfix) with ESMTP id BF5A56B97 for ; Wed, 20 Feb 2019 19:05:02 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id wcnNgAyUvdnCewcnNg8Vvm; Wed, 20 Feb 2019 19:05:02 -0600 X-Authority-Reason: nr=8 Received: from [189.250.119.20] (port=45984 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gwcl0-000dxd-O9; Wed, 20 Feb 2019 19:05:00 -0600 Date: Wed, 20 Feb 2019 19:02:33 -0600 From: "Gustavo A. R. Silva" To: Kaike Wan , Mike Marciniszyn , Dennis Dalessandro , Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: [PATCH] IB/hfi1: Add missing break in switch statement Message-ID: <20190221010233.GA29228@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.119.20 X-Source-L: No X-Exim-ID: 1gwcl0-000dxd-O9 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.119.20]:45984 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 7 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning by adding a missing break: drivers/infiniband/hw/hfi1/tid_rdma.c: In function ‘hfi1_tid_rdma_wqe_interlock’: drivers/infiniband/hw/hfi1/tid_rdma.c:3251:3: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (prev->wr.opcode) { ^~~~~~ drivers/infiniband/hw/hfi1/tid_rdma.c:3259:2: note: here case IB_WR_RDMA_READ: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: c6c231175ccd ("IB/hfi1: Add interlock between TID RDMA WRITE and other requests") Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/hw/hfi1/tid_rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/hfi1/tid_rdma.c b/drivers/infiniband/hw/hfi1/tid_rdma.c index bc2ff83026f7..fdda33aca77f 100644 --- a/drivers/infiniband/hw/hfi1/tid_rdma.c +++ b/drivers/infiniband/hw/hfi1/tid_rdma.c @@ -3256,6 +3256,7 @@ bool hfi1_tid_rdma_wqe_interlock(struct rvt_qp *qp, struct rvt_swqe *wqe) default: break; } + break; case IB_WR_RDMA_READ: if (prev->wr.opcode != IB_WR_TID_RDMA_WRITE) break; -- 2.20.1