From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Date: Fri, 16 Jan 2015 09:44:29 +0000 Subject: Re: [PATCH 27/28] PCI: Remove platform specific pci_domain_nr() Message-Id: <1561857.t9qV46uRjC@wuerfel> List-Id: References: <1421372666-12288-1-git-send-email-wangyijing@huawei.com> <1421372666-12288-28-git-send-email-wangyijing@huawei.com> In-Reply-To: <1421372666-12288-28-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yijing Wang Cc: Bjorn Helgaas , Jiang Liu , linux-pci@vger.kernel.org, Yinghai Lu , linux-kernel@vger.kernel.org, Marc Zyngier , linux-arm-kernel@lists.infradead.org, Russell King , x86@kernel.org, Thomas Gleixner , Tony Luck , linux-ia64@vger.kernel.org, "David S. Miller" , Guan Xuetao , linux-alpha@vger.kernel.org, linux-m68k@vger.kernel.org, Liviu Dudau , Geert Uytterhoeven On Friday 16 January 2015 09:44:25 Yijing Wang wrote: > > +int pci_domain_nr(struct pci_bus *bus) > +{ > + struct pci_host_bridge *host = find_pci_host_bridge(bus); > + > + return host->domain; > +} > +EXPORT_SYMBOL_GPL(pci_domain_nr); > + Since most of the existing functions are exported as EXPORT_SYMBOL rather than EXPORT_SYMBOL_GPL, I think the new version should do the same. Arnd