Subject: Re: [PATCH] powerpc: fix annotation of pcibios_claim_one_bus

From: Michael Ellerman <[email-masked]>
Date: Tue, 02 Jun 2009 12:06:49 +1000

On Tue, 2009-06-02 at 10:53 +1000, Stephen Rothwell wrote:
> It was __devinit, but it is also within a CONFIG_HOTPLUG guarded section
> of code, so the __devinit does nothing but cause the following warning:
> 
> WARNING: vmlinux.o(.text+0x107a8): Section mismatch in reference from the function pcibios_finish_adding_to_bus() to the function .devinit.text:pcibios_claim_one_bus()

Isn't the real problem that the PCI hotplug code is not marked as
__devinit?

cheers