Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8412322ybi; Thu, 6 Jun 2019 11:53:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbwVK4b5h99FpNKWtgOfx/vXVWhiHP610PLULaXBCDAT+Fy+RbzCcZGkRsRV60Juit0h3T X-Received: by 2002:a62:1a8e:: with SMTP id a136mr16943314pfa.22.1559847215911; Thu, 06 Jun 2019 11:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559847215; cv=none; d=google.com; s=arc-20160816; b=DSLWKpHzdgO8Wzc4qUD7F/wufzcErw9VlU5y8Vsz9Xv9BIfHaqESQAvD3hCzy1dbsc eYGE9txBbL1ho16Ts8ZbPR0bz8ZOKU3oMNBgeZt+18SqDUNPe0xR8b7LC/HIVnnaLxZd kAwR2Ux8DjHH3rDkVc+N28KVW3SC2428t2uhK+5qIXIOn0SC74wSCjmGd+eyI6N0jzNa kQeem2zifgpm+Y4bJMi9jGUnRU50FuCpe59tLPQlGCHwfT8UEAiLWT5m1olQHKva8nPe CXw/e8LJDtFZKymitRJmYrmc5T7UP+zBEURLBDPqAC8Y/mJQHKCHiBFyobZzfepVO4fy CAsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DfWGqMsNhu0Wn9UXa5rpUQbIrk9rtIgPo7mJo0K3Iy0=; b=y1/wNDL6i/E8799wyma8U7rgTIbyWco4LgkuL/Om6mMuVTEzWteWJ4mQLldOpLR2+v 29Bb7/jbNEo0yT3gXsIYmQp/Y2UqCzm4mdvrJFZcRrWT9idWzbCY5K267TVwGzmWTx7b jrbhGWlEE9h15A/CVjENIgoXd2KmX12b1cGr504DMp7V8lxinnAVFc9pIxC0vqb/wYY9 nE73yJOCGAvAmMP2aSD7CVZKSh7Hqh09QkdqVduA/fpesR8mIyf0jF7JlKkIFS4DMFl7 EPQCdMglJYsWi3s1jxEosnv/IxP68/KowZ0zPXNfcbSoL8MwZXEZa5fP1I4nX3VXZ8px x4sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=edOUZg3G; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w206si2615359pff.33.2019.06.06.11.53.20; Thu, 06 Jun 2019 11:53:35 -0700 (PDT) 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; dkim=pass header.i=@broadcom.com header.s=google header.b=edOUZg3G; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729914AbfFFRIJ (ORCPT + 99 others); Thu, 6 Jun 2019 13:08:09 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45983 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729905AbfFFRII (ORCPT ); Thu, 6 Jun 2019 13:08:08 -0400 Received: by mail-pf1-f194.google.com with SMTP id s11so1873326pfm.12 for ; Thu, 06 Jun 2019 10:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=DfWGqMsNhu0Wn9UXa5rpUQbIrk9rtIgPo7mJo0K3Iy0=; b=edOUZg3GANEHsuow5KsriAJk8/6SQssHjNCT4tBBHkNEMs7cc7BSBL3Y5TX+twtruP 6TSMfZEm92SNNInMq87/gyoNQ336XCRS8pIlKvho5y7eSZB2ZIoGpjkMaChwJVN6lykR N+iefC9iJuKoXcUKxrzKy8O/cExO4RJci97F4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DfWGqMsNhu0Wn9UXa5rpUQbIrk9rtIgPo7mJo0K3Iy0=; b=MoHP86kWLYdP3Vq/1+0yFpqt2Vw1OxJlG5ve9M8kgkhwNa8ZBL5uL8Vd/Of6jH8UcX KRUiQdjz6RlzpkHaNleV9M/ND3SzLR+6fUAiWj+jGyUV450qjb67x/n9Z2x9PexInt73 G13KQp6n3edfqOz+xw44+juk5B0h+X7CLn/B58AQkoBtgquOZgMCVKH8RwtjwuylaE/I qgWnPlLQ4lN8sxV4s/YGcy+Vf0RbJ0TtRNmrCjnwCOxT0UV/Lyjty/Bqe/VPr1fgLCSp KnExfdRC3OyM1lUvpStdDJWYU5LlC9zCAhKW7qonbep95/UC15pUkV9sWKKSVLwJqOoi NFHA== X-Gm-Message-State: APjAAAVdmUloaUFCdPdEvpMsybJ9mRkoJwIYLYMNcoqiGmt5q1wire58 mwc5HcHXJMbKFF6eV3sufDr+rA== X-Received: by 2002:aa7:942f:: with SMTP id y15mr55190799pfo.121.1559840887916; Thu, 06 Jun 2019 10:08:07 -0700 (PDT) Received: from [10.69.37.149] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x25sm2648197pfm.48.2019.06.06.10.08.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 10:08:07 -0700 (PDT) Subject: Re: [PATCH] scsi: lpfc: Avoid unused function warnings To: Nathan Chancellor , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, YueHaibing References: <20190606052421.103469-1-natechancellor@gmail.com> From: James Smart Message-ID: <27ccc327-3a4b-f489-2b21-b68479e45519@broadcom.com> Date: Thu, 6 Jun 2019 10:08:03 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190606052421.103469-1-natechancellor@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/5/2019 10:24 PM, Nathan Chancellor wrote: > When building powerpc pseries_defconfig or powernv_defconfig: > > drivers/scsi/lpfc/lpfc_nvmet.c:224:1: error: unused function > 'lpfc_nvmet_get_ctx_for_xri' [-Werror,-Wunused-function] > drivers/scsi/lpfc/lpfc_nvmet.c:246:1: error: unused function > 'lpfc_nvmet_get_ctx_for_oxid' [-Werror,-Wunused-function] > > These functions are only compiled when CONFIG_NVME_TARGET_FC is enabled. > Use that same condition so there is no more warning. While the fixes > commit did not introduce these functions, it caused these warnings. > > Fixes: 4064b27417a7 ("scsi: lpfc: Make some symbols static") > Signed-off-by: Nathan Chancellor > --- > drivers/scsi/lpfc/lpfc_nvmet.c | 2 ++ > 1 file changed, 2 insertions(+) > > Looks fine. Reviewed-by:  James Smart