Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754153AbdDDOC3 (ORCPT ); Tue, 4 Apr 2017 10:02:29 -0400 Received: from mail1.bemta12.messagelabs.com ([216.82.251.10]:35264 "EHLO mail1.bemta12.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbdDDOC1 (ORCPT ); Tue, 4 Apr 2017 10:02:27 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleJIrShJLcpLzFFi42I5fN1ilW7+8sc RBvseyVv8nXSM3WJJU4bFneuCFjM/MlocbljKZnF51xw2i7PzjrNZvGudyGrx5vcLdouWpzMY LRYemsvuwO3xcf0nRo8189Ywevz+NYnRY9b9s2wel/t6mTz6131m9ViwqdSj5chbVo+XWwo8P m+SC+CKYs3MS8qvSGDNaLmyn63gKU/Fo3nNzA2Mv7m6GLk4hASWMkrMXTuHtYuRk0NYIFBi/o K9bCC2iICbxPxrdxlBbGaBY0wSsxckgthCAsYSMw8/Ygax2QRMJG7eP8cCYvMKOEtsurQEzGY RUJH49aOPHcQWFUiQuPhnCitEjaDEyZlPwGo4gXqPXbzKDjFfX6Jp6xxmCFteYvtbCFtIQFvi /cbFYL0SAgoSUye3Mk9g5J+FZNQsJO2zkLQvYGRexahRnFpUllqka2Sgl1SUmZ5RkpuYmaNra Gikl5taXJyYnpqTmFSsl5yfu4kRGDn1DAyMOxhnNXodYpTkYFIS5T3s+ThCiC8pP6UyI7E4I7 6oNCe1+BCjDAeHkgSv3DKgnGBRanpqRVpmDjCGYdISHDxKIrxbQNK8xQWJucWZ6RCpU4y6HHN m737DJMSSl5+XKiXOyw1SJABSlFGaBzcClk4uMcpKCfMyMjAwCPEUpBblZpagyr9iFOdgVBLm ZQeZwpOZVwK36RXQEUxARzy58xDkiJJEhJRUA+ObzRGf7ujfY1F882K5QhDbzc912rGq7VaCp XNORh5rbsq7Vjbna+YD2S8T/yefTjlV3eR5rSyzLPfDbJb1vQfVHlxaNScuwEPX/cKleY3TZ6 cwefKzJv6arayxduNhVTM71g8f+ib2rcx+Z+d65KDC3nU2Gz1eZ5eUJpTbC72qm3HYflJFuL8 SS3FGoqEWc1FxIgBWAasPIgMAAA== X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-12.tower-219.messagelabs.com!1491314532!151701865!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Subject: Re: [PATCH] PCI: generic: stop hiding pci_host_common_probe declaration To: Arnd Bergmann , Bjorn Helgaas CC: Jayachandran C , Tomasz Nowicki , Lorenzo Pieralisi , Dongdong Liu , Christopher Covington , Duc Dang , , , Mason References: <20170321160003.339217-1-arnd@arndb.de> From: Marc Gonzalez Message-ID: Date: Tue, 4 Apr 2017 16:02:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 MIME-Version: 1.0 In-Reply-To: <20170321160003.339217-1-arnd@arndb.de> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.27.0.114] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1637 Lines: 41 On 21/03/2017 16:59, Arnd Bergmann wrote: > When pci_host_common_probe() was moved into a separate module, the #ifdef around > the declaration was left in the header file, which can lead to build errors in > some configurations: > > drivers/pci/host/pci-thunder-pem.c: In function 'thunder_pem_probe': > drivers/pci/host/pci-thunder-pem.c:412:9: error: implicit declaration of function 'pci_host_common_probe';did you mean 'pci_host_bridge_priv'? [-Werror=implicit-function-declaration] > > The ifdef serves no real purpose anyway, so we can just remove it. > > Fixes: 4e64dbe226e7 ("PCI: generic: Expose pci_host_common_probe() for use by other drivers") > Signed-off-by: Arnd Bergmann > --- > include/linux/pci-ecam.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/linux/pci-ecam.h b/include/linux/pci-ecam.h > index f0d2b9451270..92a73847e1d3 100644 > --- a/include/linux/pci-ecam.h > +++ b/include/linux/pci-ecam.h > @@ -68,9 +68,7 @@ extern struct pci_ecam_ops xgene_v1_pcie_ecam_ops; /* APM X-Gene PCIe v1 */ > extern struct pci_ecam_ops xgene_v2_pcie_ecam_ops; /* APM X-Gene PCIe v2.x */ > #endif > > -#ifdef CONFIG_PCI_HOST_GENERIC > /* for DT-based PCI controllers that support ECAM */ > int pci_host_common_probe(struct platform_device *pdev, > struct pci_ecam_ops *ops); > #endif > -#endif > I ran into this issue as well (on v4.9) and submitted a patch a week after you did, by pure coincidence: Subject: [TRIVIAL PATCH] PCI: Change pci_host_common_probe visibility Date: Tue, 28 Mar 2017 17:29:51 +0200 https://www.spinics.net/lists/linux-pci/msg59823.html Regards.