[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84b55881-21ba-aa5b-7b56-7d8e411771f9@infradead.org>
Date: Tue, 20 Oct 2020 08:51:33 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: linux-kernel@...r.kernel.org, kernel test robot <lkp@...el.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Paul Burton <paulburton@...nel.org>,
linux-mips@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
linux-pci@...r.kernel.org, Lee Jones <lee.jones@...aro.org>,
Thomas Bogendoerfer <tbogendoerfer@...e.de>
Subject: Re: [PATCH] PCI: export pci_find_host_bridge() to fix MFD build error
On 10/20/20 7:06 AM, Randy Dunlap wrote:
> On 10/20/20 1:02 AM, Christoph Hellwig wrote:
>> On Sun, Oct 18, 2020 at 11:14:53PM -0700, Randy Dunlap wrote:
>>> Fix a build error in drivers/mfd/ioc.o by exporting
>>> pci_find_host_bridge().
>>>
>>> ERROR: modpost: "pci_find_host_bridge" [drivers/mfd/ioc3.ko] undefined!
>>
>> I think the mfd code should be fixed to not depend on such an internal
>> symbol instead.
>>
>
> Thanks for commenting. and I am not surprised.
>
> Adding Cc: for Thomas and Lee.
BTW, if someone wants to use the MFD ioc3 driver now,
without any source code patches, they can just build it in
(SGI_MFD_IOC3=y) instead of building it as a loadable module.
It builds successfully and can use pci_find_host_bridge().
pci_find_host_bridge() just isn't exported for loadable modules.
So this could be useful (PCI=y):
config SGI_MFD_IOC3
tristate "SGI IOC3 core driver"
depends on PCI=y && MIPS && 64BIT
select MFD_CORE
--
~Randy
Powered by blists - more mailing lists