[lkml]   [2008]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] x86: fix section mismatch in pci_scan_bus
On Tuesday, April 29, 2008 1:38 pm Sam Ravnborg wrote:
> Fix following section mismatch warning:
> WARNING: vmlinux.o(.text+0x275616): Section mismatch in reference from the
> function pci_scan_bus() to the function
> .devinit.text:pci_scan_bus_parented()
> The warning was seen with a CONFIG_DEBUG_SECTION_MISMATCH=y build.
> The inline function pci_scan_bus refer to functions annotated
> __devinit - so annotate it __devinit too.
> This revealed a few x86 specific functions that were only
> used from __init or __devinit context.
> So annotate these __devinit and the warning was killed.
> The added include in pci.h was not strictly required but
> added to avoid being dependent on indirect includes.
> Signed-off-by: Sam Ravnborg <>

Applied, thanks Sam.


 \ /
  Last update: 2008-04-29 22:47    [W:0.029 / U:1.584 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site