Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030285AbaGCK0w (ORCPT ); Thu, 3 Jul 2014 06:26:52 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:52324 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030184AbaGCK0u (ORCPT ); Thu, 3 Jul 2014 06:26:50 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Tanmay Inamdar , Sinan Kaya , linaro-kernel , Catalin Marinas , Device Tree ML , linux-pci , Jingoo Han , Liviu Dudau , LKML , Will Deacon , Grant Likely , patches , Kukjin Kim , Suravee Suthikulanit , Benjamin Herrenschmidt , Bjorn Helgaas Subject: Re: [PATCH v8 2/9] pci: Export find_pci_host_bridge() function. Date: Thu, 03 Jul 2014 12:26:32 +0200 Message-ID: <12857279.nHR7kEbqBW@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1404240214-9804-1-git-send-email-Liviu.Dudau@arm.com> <7101568.8DVJFku5jp@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:bj95T271c9Ux589v5OGWWbtcDgNuvOfArtS8IxDq4UY SxjfFiAR3Zq1iSwwQ5Zmi4iNgVsz9H6phzMo/iFi9ATIIUQ7US mpIwZGRj/V0VPHSs2cINkdxuJdHUpih0VjqL4Uuyr/S7KBIUJH LLPu3J9Ip/dpcoTxz2QT+M2uRaTdYp+GkydKWtXd0L4wfSnR6I lXf43fXER305IE6P1LmnCGGnwnceQ7JShEPmwqJVwTjnOACVSr hBUeW59DBGwOWyHwoRM4cXFfmrNIpHCvSEupNTvt4/S2UGOsbm yjSYIQfuHVp1a8Tb5xgbmNDL3ypxGiPwrom0z6IsCIwZs5gq3V HPUYke8hL9ZIKPfbklr8= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 02 July 2014 13:43:41 Tanmay Inamdar wrote: > On Wed, Jul 2, 2014 at 12:12 PM, Arnd Bergmann wrote: > > I think EXPORT_SYMBOL_GPL() is better here. The new symbols are unlikely > > to be used by a peripheral device driver, and PCI host controllers are > > already restricted by EXPORT_SYMBOL_GPL. > > > > You are right as long as the functions are not used directly. But what > if GPL functions are called indirectly. For example, 'pci_domain_nr' > implementation in Liviu's V7 series calls 'find_pci_host_bridge'. Good point. If pci_domain_nr() doesn't require access to an EXPORT_SYMBOL_GPL symbol, it should not start doing that after this patch. For of_create_pci_host_bridge() however, I can't think of any reason to use a legacy EXPORT_SYMBOL. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/