Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1581712
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] PCI: always build pci-host-common on ARM64 |
| Date | 2017-02-15 23:10 +0100 |
| Message-ID | <tbfVU-5G3-25@gated-at.bofh.it> (permalink) |
| References | <taT90-79j-15@gated-at.bofh.it> <tbb5V-2sv-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Feb 15, 2017 at 5:56 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> On Tue, Feb 14, 2017 at 10:42:56PM +0100, Arnd Bergmann wrote:
>> The Thunder PCI host driver is always built, but it relies on pci_host_common_probe,
>> so we get a link error here:
>>
>> drivers/pci/host/pci-thunder-pem.c: In function 'thunder_pem_probe':
>> drivers/pci/host/pci-thunder-pem.c:412:9: error: implicit declaration of function 'pci_host_common_probe';did you mean 'pci_host_bridge_priv'? [-Werror=implicit-function-declaration]
>>
>> This adds the common file to the existing hack.
>>
>> Fixes: ca5ab37b19df ("PCI: Explain ARM64 ACPI/MCFG quirk Kconfig and build strategy")
>
> I'm puzzled. ca5ab37b19df doesn't *look* like it changes anything.
>
> thunder_pem_probe() is compiled when CONFIG_PCI_HOST_THUNDER_PEM=y,
> and it calls pci_host_common_probe().
>
> pci_host_common_probe() is in pci-host-common.c, which is compiled
> when CONFIG_PCI_HOST_COMMON=y. But the declaration below is under
> #ifdef CONFIG_PCI_HOST_GENERIC. Shouldn't it be under #ifdef
> CONFIG_PCI_HOST_COMMON instead?
>
> It'd be nice to know what actually broke this (if it's not
> ca5ab37b19df) so we can figure out where the fix should be backported.
Right, I misread the commit and got the wrong one. I also ran into a related
problem and will follow up with a new patch that addresses both at once.
Please ignore this version for now.
Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] PCI: always build pci-host-common on ARM64 Arnd Bergmann <arnd@arndb.de> - 2017-02-14 22:50 +0100
Re: [PATCH] PCI: always build pci-host-common on ARM64 Bjorn Helgaas <helgaas@kernel.org> - 2017-02-15 18:00 +0100
Re: [PATCH] PCI: always build pci-host-common on ARM64 Arnd Bergmann <arnd@arndb.de> - 2017-02-15 23:10 +0100
csiph-web