From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Helgaas Subject: Re: [PATCH v4 28/30] PCI: Export find_pci_host_bridge() Date: Mon, 2 Mar 2015 21:40:48 -0600 Message-ID: <20150303034048.GM11978@google.com> References: <1424938344-4017-1-git-send-email-wangyijing@huawei.com> <1424938344-4017-29-git-send-email-wangyijing@huawei.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=kqNFYnfJj7GyE35K0YI7YTb/ZDu+chGArLhbdbqCS3E=; b=BqCl3K+AqiGZ1WitMdwBVCwIfcPrhizsTuz+zr39ig88UFnYzTH+KcJQwbM/Dk1OvE lL79ZWZxeaQ3BHT6e8/mD3wV4sR0H7c6uBuueub7nSIG9fIeM4p0Hc1TShJAk6kf2aSu WzIvNRPsoNPGWBDOIiTbrOGxjJNkDqbnih9aedloDyVZ1sK+7vWEzmlh1O7ETwTj4YJh //eVd9ubrBA5QRDFwE0oRLU1qNLnyJD3+IhT3YFnFwPdP4wX+4+B/tZVodWkAfKmdcGF 4F0vYfA4wxG6/Y5d/9D1vcvee9k88A5uWT4MDtsRpCARrrXv1Azg02KnuvgG18MW1m9T LCLQ== Content-Disposition: inline In-Reply-To: <1424938344-4017-29-git-send-email-wangyijing@huawei.com> Sender: linux-pci-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yijing Wang Cc: 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 , Benjamin Herrenschmidt , Rusty Russell , Tony Luck , linux-ia64@vger.kernel.org, "David S. Miller" , Guan Xuetao , linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org, Liviu Dudau , Arnd Bergmann , Geert Uytterhoeven On Thu, Feb 26, 2015 at 04:12:22PM +0800, Yijing Wang wrote: > Export find_pci_host_bridge(). > > Signed-off-by: Yijing Wang > --- > drivers/pci/host-bridge.c | 2 +- > include/linux/pci.h | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c > index 4a2baa2..51e24f8 100644 > --- a/drivers/pci/host-bridge.c > +++ b/drivers/pci/host-bridge.c > @@ -104,7 +104,7 @@ static struct pci_bus *find_pci_root_bus(struct pci_bus *bus) > return bus; > } > > -static struct pci_host_bridge *find_pci_host_bridge(struct pci_bus *bus) > +struct pci_host_bridge *find_pci_host_bridge(struct pci_bus *bus) Please name this "pci_find_host_bridge()" or similar so it looks like other PCI functions. > { > struct pci_bus *root_bus = find_pci_root_bus(bus); > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 2f29e95..6ac7926 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -426,6 +426,7 @@ void pci_set_host_bridge_release(struct pci_host_bridge *bridge, > struct pci_host_bridge *pci_create_host_bridge( > struct device *parent, u32 dombus, struct list_head *resources, > void *sysdata, struct pci_host_bridge_ops *ops); > +struct pci_host_bridge *find_pci_host_bridge(struct pci_bus* bus); I'm not sure this needs to be in include/linux/pci.h. Wouldn't drivers/pci/pci.h be enough? > /* > * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond > * to P2P or CardBus bridge windows) go in a table. Additional ones (for > -- > 1.7.1 >