2008-10-17 20:12:42

by Fabio Comolli

[permalink] [raw]
Subject: Latest GIT section mismatches

Linus ' GIT 2.6.27-05323-g26e9a39 (pulled less than one hour ago) gives:

WARNING: vmlinux.o(.text+0x1cde2): Section mismatch in reference from
the function reserve_region_with_split() to the function
.init.text:__reserve_region_with_split()
The function reserve_region_with_split() references
the function __init __reserve_region_with_split().
This is often because reserve_region_with_split lacks a __init
annotation or the annotation of __reserve_region_with_split is wrong.

WARNING: vmlinux.o(.cpuinit.text+0xeec): Section mismatch in reference
from the function cpu_init() to the function
.init.text:init_thread_xstate()
The function __cpuinit cpu_init() references
a function __init init_thread_xstate().
If init_thread_xstate is only used by cpu_init then
annotate init_thread_xstate with a matching annotation.

WARNING: vmlinux.o(.cpuinit.data+0x0): Section mismatch in reference
from the variable initial_code to the function
.init.text:i386_start_kernel()
The variable __cpuinitdata initial_code references
a function __init i386_start_kernel().
If i386_start_kernel is only used by initial_code then
annotate i386_start_kernel with a matching annotation.

I'll send .config on request.


2008-10-17 20:15:30

by Randy Dunlap

[permalink] [raw]
Subject: Re: Latest GIT section mismatches

On Fri, 17 Oct 2008, Fabio Comolli wrote:

> Linus ' GIT 2.6.27-05323-g26e9a39 (pulled less than one hour ago) gives:
>
> WARNING: vmlinux.o(.text+0x1cde2): Section mismatch in reference from
> the function reserve_region_with_split() to the function
> .init.text:__reserve_region_with_split()
> The function reserve_region_with_split() references
> the function __init __reserve_region_with_split().
> This is often because reserve_region_with_split lacks a __init
> annotation or the annotation of __reserve_region_with_split is wrong.
>
> WARNING: vmlinux.o(.cpuinit.text+0xeec): Section mismatch in reference
> from the function cpu_init() to the function
> .init.text:init_thread_xstate()
> The function __cpuinit cpu_init() references
> a function __init init_thread_xstate().
> If init_thread_xstate is only used by cpu_init then
> annotate init_thread_xstate with a matching annotation.
>
> WARNING: vmlinux.o(.cpuinit.data+0x0): Section mismatch in reference
> from the variable initial_code to the function
> .init.text:i386_start_kernel()
> The variable __cpuinitdata initial_code references
> a function __init i386_start_kernel().
> If i386_start_kernel is only used by initial_code then
> annotate i386_start_kernel with a matching annotation.

so on i386.

Did you build with CONFIG_DEBUG_SECTION_MISMATCH=y ?

> I'll send .config on request.

--
~Randy