From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5891D1007E1 for ; Tue, 26 Jun 2012 12:50:56 +1000 (EST) Message-ID: <1340679045.3732.3.camel@pasglop> Subject: Re: [PATCH V3 1/2] PCI: retrieve host bridge by PCI bus From: Benjamin Herrenschmidt To: Gavin Shan Date: Tue, 26 Jun 2012 12:50:45 +1000 In-Reply-To: <20120626003020.GA6307@shangw> References: <1340593821-19011-1-git-send-email-shangw@linux.vnet.ibm.com> <20120626003020.GA6307@shangw> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, Yinghai Lu , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2012-06-26 at 08:30 +0800, Gavin Shan wrote: > >> +EXPORT_SYMBOL(pci_bus_host_bridge); > > Yinghai, thanks for your time on this :-) > > > > >why do you need to export it? > > > > The reason is that we have introduced extra fields to "struct > pci_host_bridge" > in [PATCH 2/2] and platform want to access those extra fields. But the platform code is built-in, not modular, so it doesn't need EXPORT_SYMBOL (additionally even if we wanted to export it we probably also want it _GPL only, so EXPORT_SYMBOL_GPL, but I don't think we need to). Cheers, Ben.