Skip to contentSkip to conversation

Section mismatch with linux-3.4

DISCUSSION Stefan Kuhne 2 participants 2 messages Apr 3, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

when I try to compile linux-3.4-rc1 I get:

WARNING: arch/x86/built-in.o(.text+0x1745): Section mismatch in reference from the function xen_align_and_add_e820_region() to the function .init.text:e820_add_region()
The function xen_align_and_add_e820_region() references the function __init e820_add_region().
This is often because xen_align_and_add_e820_region lacks a __init annotation or the annotation of e820_add_region is wrong.

How can I solve this or is this not nesesary?

Regards,
Stefan Kuhne

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 11 lines · Stefan Kuhne

Hello,

when I try to compile linux-3.4-rc1 I get:

WARNING: arch/x86/built-in.o(.text+0x1745): Section mismatch in reference from the function xen_align_and_add_e820_region() to the function .init.text:e820_add_region()
The function xen_align_and_add_e820_region() references the function __init e820_add_region().
This is often because xen_align_and_add_e820_region lacks a __init annotation or the annotation of e820_add_region is wrong.

A patch to add '__init' to the xen_align_and_add_e820_region should do it! Please also attach you SOB to it. Thanks!

Quoted 2 lines

How can I solve this or is this not nesesary?

it will save a couple of bytes (as the _init sections get all removed at a certain stage in the bootup process).

Quoted 11 lines

Regards,
Stefan Kuhne

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel