Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1878407yba; Thu, 4 Apr 2019 21:53:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzzVZZD5LtsOC3SOY10MTiseNXvJlCv3DuM1a7EOKhiYB/xF0P0xSq/9f/BEUon9nVDgip X-Received: by 2002:a63:6fc1:: with SMTP id k184mr9684595pgc.239.1554440030223; Thu, 04 Apr 2019 21:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554440030; cv=none; d=google.com; s=arc-20160816; b=MDTDyv7Em2+cW+y514x9J2TL6he6X8QOBzTtshWAo2iWojOwCrxEeB4Rjea2HcJNuG uTSG18fU8EnXCDXGoj2R92Vsq91ybCmuhyJdRFpWKGfokAgvXsje+MJnPEuNnqpX/F04 V9dwXLtdH1ui0FKWnK+P7nBTm/leQQy/aT7FvIzYDiREo4O48gBo70fJN7r/merrwLlK v7AydoWkji1U03glNOTZYX097tElhagwl8ddunKFt/4CLeaTRpz1/z8JOP7xuKVuDo18 79rSKLbNK4qcFiKP/25l9a740+SZoEseS4c1RNhY6S9rw2UvLV7hjSNQtfJihwPl1IRZ 75vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=2/t/xQrLnansUGZKgJ36hfFta7Bggu73cwV/4QR6+mM=; b=vsV1L1BT6+W/ydqi+ByIFBLNcPPJlzZ31cJyt7DGQHRvo7eF9hmgHozblzz/yCes46 6AWXJYZcy0awMxJ8NyTfG9Km89bdFVKlVo7u74wXSRWigpMvMz6vnorwKx3CDbgCUm62 DouLzPeUB0aJ+ECRSRwGY4rjik9YIAUGhfEvO6gyIT9/YH63QGJlyeqmAz5mEyxhJv6f fwVeEp5wFF7Vq8fe+TptOr8/pSKXJAmwP0w1cGZG2XlZP+21Ls+UxjK1fQc1+oIn0bzQ CkQ+2APHWaFqYfKOwfYM+YD/icI3Cnj1VyvFCFbLpum6klwl9Xpijfa9DDithkEDnVet AjUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=rlFHpGeh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si17841143pls.29.2019.04.04.21.53.30; Thu, 04 Apr 2019 21:53:50 -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=fail header.i=@hansenpartnership.com header.s=20151216 header.b=rlFHpGeh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbfDEEww (ORCPT + 99 others); Fri, 5 Apr 2019 00:52:52 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:44738 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfDEEwv (ORCPT ); Fri, 5 Apr 2019 00:52:51 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 18B108EE12C; Thu, 4 Apr 2019 21:52:51 -0700 (PDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hkgxeMu99DMi; Thu, 4 Apr 2019 21:52:50 -0700 (PDT) Received: from [153.66.254.194] (unknown [50.35.68.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 83EAD8EE03B; Thu, 4 Apr 2019 21:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1554439970; bh=cNWVCotOzkN8JshvEU0GwzGg9x/N/sNQd+FajbwMyWw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=rlFHpGehm7pgmJmnSRW4KyZ997pxlr+pTDvskj7n/HN4Eg5pEz3I/B12ULnRrKGzS EdHxsH3m52n8ltqPKDYR8DOzyF+tT5dWCW+BlD9i5kKwsFlSMXYgRZFQ/FgoQKpTCb tNvca1ffzwi7hmlK6PuPE7FGAU0alA/Pl8Joo01c= Message-ID: <1554439969.24612.41.camel@HansenPartnership.com> Subject: Re: linux-next: build warning after merge of the scsi tree From: James Bottomley To: Bart Van Assche , Stephen Rothwell Cc: Linux Next Mailing List , Linux Kernel Mailing List , "Martin K. Petersen" Date: Thu, 04 Apr 2019 21:52:49 -0700 In-Reply-To: References: <20190405142347.1f264cdf@canb.auug.org.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-04-04 at 21:30 -0700, Bart Van Assche wrote: > On 4/4/19 8:25 PM, Stephen Rothwell wrote: > > Hi James, > > > > After merging the scsi tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > 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, > > ^~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Introduced by commit > > > > 3999df75bccb ("scsi: lpfc: Declare local functions static") > > > > It use is guarded by IS_ENABLED(CONFIG_NVME_FC). > > I will have a closer look at this tomorrow. In the meantime, we can just revert the patch. Making functions static serves no real purpose except it does tell the compiler they have to be used internally which is where the problem is coming from. Once the issue is sorted, the static patch can be reapplied. James