From patchwork Fri Apr 5 16:14:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10887619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29E13922 for ; Fri, 5 Apr 2019 16:14:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1353328989 for ; Fri, 5 Apr 2019 16:14:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 072F228AB6; Fri, 5 Apr 2019 16:14:20 +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.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 8978928989 for ; Fri, 5 Apr 2019 16:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730668AbfDEQOT (ORCPT ); Fri, 5 Apr 2019 12:14:19 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33978 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfDEQOS (ORCPT ); Fri, 5 Apr 2019 12:14:18 -0400 Received: by mail-pg1-f195.google.com with SMTP id v12so3330195pgq.1 for ; Fri, 05 Apr 2019 09:14:18 -0700 (PDT) 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=fRKyrEUXia6bqDSRUw9lJiHCR90yZH5IAVyjVTcRniU=; b=Eh0UCUPY1M97z78u0h3dm+GK1ByxYhOCBT6LL2SW5D0SRmRYd1J80lnjhghSKD87La 0UXQrOq0W+uz2avWNFugz1oHWJkzuK/4lVVeUK3TONCyxImOik6VSGIIaGTUqiLoBiiE 9Nnfcd97PglPchSml0vvgzUydKXFf1+Hu8xlFGeQM+63v4G4DMvr3Udl+f/TcDuXBQfA PbKV5mTJZiwoL44D4Z3KNl1ajb/2e7tuKqWFPXXy1YWS4iJek3hD2xOR13xQy2GV7H2O bhTCnEPirzOFqXtmw3lTBkEr/IARg1QoQG4zYflP1GCgNHu3oDCXz8mhtkcUCgkNnDaG lcSA== X-Gm-Message-State: APjAAAV2G1+4TY5/X3xnMKS8HtuNsM4PbESDxvfEO7/oyizmtUAhnc0S LvJdEHwFvUfZwTRSrkVmULI= X-Google-Smtp-Source: APXvYqwrNUxcgWKF3uI/b9E2ulilAB9jR8r4L2urGcm+rATfqkmvd505y2y9WtY2YBjY4Q6EGa5nng== X-Received: by 2002:a63:360e:: with SMTP id d14mr12769024pga.188.1554480857907; Fri, 05 Apr 2019 09:14:17 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id a12sm24890979pgq.21.2019.04.05.09.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2019 09:14:16 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche , James Smart Subject: [PATCH] lpfc: Fix a recently introduced compiler warning Date: Fri, 5 Apr 2019 09:14:10 -0700 Message-Id: <20190405161410.158770-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that the following compiler warning is reported with CONFIG_NVME_FC=n: drivers/scsi/lpfc/lpfc_nvme.c:2140:1: warning: 'lpfc_nvme_lport_unreg_wait' defined but not used [-Wunused-function] lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, ^~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 3999df75bccb ("scsi: lpfc: Declare local functions static") Cc: James Smart Signed-off-by: Bart Van Assche Reviewed-by:  James Smart   --- drivers/scsi/lpfc/lpfc_nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index 8a123ff98250..9d99cb915390 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c @@ -2126,6 +2126,7 @@ lpfc_nvme_create_localport(struct lpfc_vport *vport) return ret; } +#if (IS_ENABLED(CONFIG_NVME_FC)) /* lpfc_nvme_lport_unreg_wait - Wait for the host to complete an lport unreg. * * The driver has to wait for the host nvme transport to callback @@ -2141,7 +2142,6 @@ lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, struct lpfc_nvme_lport *lport, struct completion *lport_unreg_cmp) { -#if (IS_ENABLED(CONFIG_NVME_FC)) u32 wait_tmo; int ret; @@ -2164,8 +2164,8 @@ lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR, "6177 Lport %p Localport %p Complete Success\n", lport, vport->localport); -#endif } +#endif /** * lpfc_nvme_destroy_localport - Destroy lpfc_nvme bound to nvme transport.