From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EDF88C433EF for ; Tue, 19 Jul 2022 21:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=poGG3RR/YZT0ZdSn+DXqdz5UHVCTiW8XhNbWbtrm5eY=; b=EuoXA8Uip8yC/B VUQ9FtW7pI+azgbf5m74fJSW1OcevvBBGb/xXIkCNGr81vgHLmskVVe3V9KDaIMMqb+2fnIpBzX7i jC4veu1KJOaI81HhCffJW4yxU7iU12KFboIjh5lfQVopglD0iQ6QgeFiRZzGtrqMUDkZewR7ZO90T mu4fg9uMAJJ4x55gAoyX+k63ee9X1Ixl+QCk2q7XP0kz/luhyHc9Ej6uGnRBDWOiJfHHyoxJIczcQ dJfriknyvJliWRcH7iyw6YlzKaFYgdzytPKBHAv/On4tVcu6/1b48DZcvsE7gdVnnRXSBV0+yuSSO NaVIc5vmsf6XikFqOKuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDuOU-00Czfi-AD; Tue, 19 Jul 2022 21:04:38 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDuOQ-00Czai-Ph for linux-arm-kernel@lists.infradead.org; Tue, 19 Jul 2022 21:04:36 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0A17CB81D3F; Tue, 19 Jul 2022 21:04:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D6D4C341C6; Tue, 19 Jul 2022 21:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658264669; bh=HKPdeEQ/6HnoatBYVcVwPMjZ1CI7YyWcl3Vrd+PB5bU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dd2VIYA8HRRe7dXnZGqbiV0DLc7+CPVQEJ8hr8C5TR5JIJVCyojrIWfXH2n/NboNq Hk+GikxAl3EaaMeWRA6TR/e1FQzV3ktMcNfR8OY2CxYo41JR3So2gzOifdarYIg3ms Ntgum6IXlkcQKlWAeOvMGWfdizXm1y6Yy7X7/H4wRZ+RgXHenfV5CI3plC1RYFIZ8k 3TQVQUNAqvPHFt5TxAMDsd4NtLby2lnMnTipU0P7Mv8rXIPtHTaIdmSdl7fpVls5U6 ZWH07cLrb+jLjDuxmOyWhrhm5ffBeMYC0sZkxMtaD7vidSJqbczKgC+krAd2bsfO1X vcmDPa9pu0uWg== Date: Tue, 19 Jul 2022 16:04:27 -0500 From: Bjorn Helgaas To: "Sudip Mukherjee (Codethink)" Cc: Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Rob Herring , Krzysztof@debian, =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Liam Girdwood , Mark Brown , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: build failure of next-20220718 due to 'imx6_pcie_host_exit' defined but not used Message-ID: <20220719210427.GA1568454@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220719_140435_354536_CC7D1B40 X-CRM114-Status: GOOD ( 18.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 18, 2022 at 12:58:05PM +0100, Sudip Mukherjee (Codethink) wrote: > Hi All, > > Not sure if it has been reported, builds of alpha, csky, xtensa, riscv, s390 allmodsconfig > have failed to build next-20220718 with the error: > > > drivers/pci/controller/dwc/pci-imx6.c:973:13: error: 'imx6_pcie_host_exit' defined but not used [-Werror=unused-function] > 973 | static void imx6_pcie_host_exit(struct dw_pcie_rp *pp) > | ^~~~~~~~~~~~~~~~~~~ > drivers/pci/controller/dwc/pci-imx6.c:904:13: error: 'imx6_pcie_stop_link' defined but not used [-Werror=unused-function] > 904 | static void imx6_pcie_stop_link(struct dw_pcie *pci) > | ^~~~~~~~~~~~~~~~~~~ Thanks for the report! I propose the following patch, which I have tentatively applied to my pci/ctrl/imx6 branch: commit 0e4daeaa52ca ("PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS()") Author: Bjorn Helgaas Date: Tue Jul 19 15:50:18 2022 -0500 PCI: imx6: Convert to NOIRQ_SYSTEM_SLEEP_PM_OPS() Replace SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() with NOIRQ_SYSTEM_SLEEP_PM_OPS(), which has the advantage that the compiler always sees the PM callbacks as referenced, so they don't need to be wrapped with "#ifdef CONFIG_PM_SLEEP" or tagged with "__maybe_unused" to avoid "defined but not used" warnings. See 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones"). Signed-off-by: Bjorn Helgaas diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 5ea01ed4674d..6f1dfbfc4304 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -884,7 +884,6 @@ static const struct dw_pcie_ops dw_pcie_ops = { .start_link = imx6_pcie_start_link, }; -#ifdef CONFIG_PM_SLEEP static void imx6_pcie_ltssm_disable(struct device *dev) { struct imx6_pcie *imx6_pcie = dev_get_drvdata(dev); @@ -1008,11 +1007,10 @@ static int imx6_pcie_resume_noirq(struct device *dev) return 0; } -#endif static const struct dev_pm_ops imx6_pcie_pm_ops = { - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(imx6_pcie_suspend_noirq, - imx6_pcie_resume_noirq) + NOIRQ_SYSTEM_SLEEP_PM_OPS(imx6_pcie_suspend_noirq, + imx6_pcie_resume_noirq) }; static int imx6_pcie_probe(struct platform_device *pdev) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel