Issue compiling kernel? - WARNING: modpost: Found 41 section mismatch(es).

bsquared bwcode4u at gmail.com
Tue Mar 1 13:14:58 PST 2011


Hello,

I am wondering if this is anything to be concerned about.  I googled
some, and what I found did not seem to apply (using old config file),
or indicated it may be normal.

I have a pretty generic kernel configuration -- actually tried two
different.  I get the following message when I make.

WARNING: modpost: Found 41 section mismatch(es).

it indicates that i should do the following to see details, so i did.

make CONFIG_DEBUG_SECTION_MISMATCH=y


40 of the warnings are like this:
WARNING: drivers/video/built-in.o(.devinit.text+0xb0): Section
mismatch in reference from the function efifb_probe() to the (unknown
reference) .init.data:(unknown)
The function __devinit efifb_probe() references
a (unknown reference) __initdata (unknown).
If (unknown) is only used by efifb_probe then
annotate (unknown) with a matching annotation.

and the remaining one is
WARNING: arch/x86/pci/built-in.o(.text+0x10fb): Section mismatch in
reference from the function pcibios_scan_specific_bus() to the
function .devinit.text:pci_scan_bus_on_node()
The function pcibios_scan_specific_bus() references
the function __devinit pci_scan_bus_on_node().
This is often because pcibios_scan_specific_bus lacks a __devinit
annotation or the annotation of pci_scan_bus_on_node is wrong.


I searched in menuconfig for efifb but found no matches.  I double
checked my video config and it seems OK.

-- 
Thank you,
-Brian



More information about the lfs-support mailing list