From patchwork Sat Sep 30 00:34:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9978873 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 C424B6037F for ; Sat, 30 Sep 2017 00:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B730D298D1 for ; Sat, 30 Sep 2017 00:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC449298D5; Sat, 30 Sep 2017 00:35:10 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 E6938298D1 for ; Sat, 30 Sep 2017 00:35:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbdI3AfH (ORCPT ); Fri, 29 Sep 2017 20:35:07 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:37525 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752601AbdI3AfB (ORCPT ); Fri, 29 Sep 2017 20:35:01 -0400 Received: by mail-qk0-f195.google.com with SMTP id z143so773954qkb.4 for ; Fri, 29 Sep 2017 17:35:00 -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:in-reply-to:references; bh=u0720ERvqwr6XLT66QOPtllBT8ushKb2o21K7Wn6gVc=; b=nsBUOCCg1MnIgdfarvLR3iQJZo4Bg25lFAV0+7NMm4Ar5JBfOG0lQCsVbBTD1oVB6c O0Cpz8cdNU1JXKAAN6gkyVu5cxHHkpzXZHvPv7qXrAD9Fjti8/5FlT83TjO9C07zZSjJ 1STsup9tLXQW77q8IhMTiJmxzCTpoJIkg7ElN4Lo85ZozIP9NteZN8poFRVtMOyqlTzv M+Mu2A4gJSxReyIbHW1qK0pGcAGedzJhDqZzJhcVCtpR7BuyvDhp7XoUUqlZ7a/YtYC9 nJGOQcqPa9mIRygBJiOL2XaldNTGH69mdNx7GOYhxVCYdb4D/4+esr9S8GFso6NFgDuK Ryeg== 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:in-reply-to :references; bh=u0720ERvqwr6XLT66QOPtllBT8ushKb2o21K7Wn6gVc=; b=ZMUX36L1nDMDOD947gsJyfUXfH0cpXFzPXsMiDydIhz/wJRHeXWDax8fd+PdlKpzGT /jNDA8IA+bCfM5t5UO8TQzG+TSNftC6xgdufzqzdVuBbDC8qx3IonHGBhAbdBxC6/11d /u6enf9AWJcoefaWX40vrEIniGTm8ncK76Nwz3scao0c/ZrDvGNhMCgzvcKQY1i/fB8t epqr7M4E5zGMQiYGlcDF8M3rQKs2CGHGb+l2n0w1gqBY72cgpiNS/VZGbyTWSIwH+uEd v8SU/TMr5uMhXzTO46960ADvXvI6IlYU17OAbOJ4nT9jJcPpomn3UpRRsgMDeF4sDGlr dn7g== X-Gm-Message-State: AMCzsaV5On81a+Rslh1aZ/ZmMJPy/9Pe91Olg7BVjzaUoJuwpJ/5Oo8N laSLHCNHiQWeOV+YtsG8y/zVpw== X-Google-Smtp-Source: AOwi7QDnP8XXI2L0pAUBkprDh/t/0Ubc+c5qxXkWSogvk9Dn5YkP7qLJfcdCE2T0ZOQeU77lTctahg== X-Received: by 10.55.124.71 with SMTP id x68mr5340498qkc.10.1506731699970; Fri, 29 Sep 2017 17:34:59 -0700 (PDT) Received: from pallmd1.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id u32sm3596918qte.25.2017.09.29.17.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Sep 2017 17:34:59 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: Dick Kennedy , James Smart Subject: [PATCH v2 05/21] lpfc: Fix warning messages when NVME_TARGET_FC not defined Date: Fri, 29 Sep 2017 17:34:31 -0700 Message-Id: <20170930003447.10747-6-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170930003447.10747-1-jsmart2021@gmail.com> References: <20170930003447.10747-1-jsmart2021@gmail.com> 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 From: Dick Kennedy Warning messages when NVME_TARGET_FC not defined on ppc builds The lpfc_nvmet_replenish_context() function is only meaningful when NVME target mode enabled. Surround the function body with ifdefs for target mode enablement. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reported-by: Stephen Rothwell Reviewed-by: Johannes Thumshirn --- drivers/scsi/lpfc/lpfc_nvmet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index 346af470f360..b6cd213567ac 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -1438,6 +1438,7 @@ static struct lpfc_nvmet_ctxbuf * lpfc_nvmet_replenish_context(struct lpfc_hba *phba, struct lpfc_nvmet_ctx_info *current_infop) { +#if (IS_ENABLED(CONFIG_NVME_TARGET_FC)) struct lpfc_nvmet_ctxbuf *ctx_buf = NULL; struct lpfc_nvmet_ctx_info *get_infop; int i; @@ -1485,6 +1486,7 @@ lpfc_nvmet_replenish_context(struct lpfc_hba *phba, get_infop = get_infop->nvmet_ctx_next_cpu; } +#endif /* Nothing found, all contexts for the MRQ are in-flight */ return NULL; }