From patchwork Thu Jul 5 17:51:35 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: 10510085 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 03C486024A for ; Thu, 5 Jul 2018 17:51:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0DD91FFCD for ; Thu, 5 Jul 2018 17:51:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3551223B3; Thu, 5 Jul 2018 17:51:37 +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 7A6B21FFCD for ; Thu, 5 Jul 2018 17:51:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753947AbeGERvg (ORCPT ); Thu, 5 Jul 2018 13:51:36 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:27870 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537AbeGERvg (ORCPT ); Thu, 5 Jul 2018 13:51: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=1530813096; x=1562349096; h=from:to:cc:subject:date:message-id; bh=abnCVOUDFiLOAlGz7Lcut/cu31iEehSa7gkOLy6jB2k=; b=Vq+lq54fhpDNJ8v2TpIJxw9SHxL+i4lFFU+nwN8eFAZs7BHTib7L4KVk UcsVtOTQCh9IuyB3g4qfumK8DF8DAAebtxk9tVO8HuQkubfxNRB/BRGGP MnMwiRzAYYDYrt4AUztEDLiBuSNzZSQntVHuGfUK88zdC8t30R0bhAnjE wqGCafEjrucOmsoCaEmeV6LztIleOCTX0q0ZV4A0ZL/UycUQcl8HcaWhU BMIA0GPDPvpI9vTvCpSJsbPtYpjGyhK4TwjmDQO0EMFoR+RCQdvAV2sRS rw5CGmYokPZt38J6HdCWgzMSB/qhHWjkex7ANn9ZhYz5J+yWb+MMrCgH/ A==; X-IronPort-AV: E=Sophos;i="5.51,313,1526313600"; d="scan'208";a="83328110" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Jul 2018 01:51:36 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 05 Jul 2018 10:40:36 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 05 Jul 2018 10:51:36 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH] IB/nes: Fix a compiler warning Date: Thu, 5 Jul 2018 10:51:35 -0700 Message-Id: <20180705175135.27743-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 Avoid that the following compiler warning is reported when building with W=1: drivers/infiniband/hw/nes/nes_hw.c:646:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] Signed-off-by: Bart Van Assche --- drivers/infiniband/hw/nes/nes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/nes/nes.h b/drivers/infiniband/hw/nes/nes.h index 00c27291dc26..18340942d75f 100644 --- a/drivers/infiniband/hw/nes/nes.h +++ b/drivers/infiniband/hw/nes/nes.h @@ -159,7 +159,7 @@ do { \ #define NES_EVENT_TIMEOUT 1200000 #else -#define nes_debug(level, fmt, args...) +#define nes_debug(level, fmt, args...) do {} while (0) #define assert(expr) do {} while (0) #define NES_EVENT_TIMEOUT 100000