[2.6.28-rc6-git1] compilation warnings and section mismatches

From: Rufus & Azrael
Date: Sun Nov 23 2008 - 04:40:57 EST


Hi all,


Here are my warnings and section mismatches when compiling 2.6.28-rc6-git1 kernel. All are fixed in git trees but patches are not yet pulled in mainline.

Regards.



arch/x86/kernel/cpu/mtrr/main.c: In function â??mtrr_cleanupâ??:
arch/x86/kernel/cpu/mtrr/main.c:1363: attention : â??gran_factorâ?? may be used uninitialized in this function
arch/x86/kernel/cpu/mtrr/main.c:1364: attention : â??gran_baseâ?? may be used uninitialized in this function

fixed by patch in http://marc.info/?l=linux-kernel&m=122394648405506&w=2 but not yet in mainline
-----------------------------------------------------------------------------------------------------
WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x347): Section mismatch in reference from the function fpu_init() to the function .init.text:init_thread_xstate()
The function __cpuinit fpu_init() references
a function __init init_thread_xstate().
If init_thread_xstate is only used by fpu_init then
annotate init_thread_xstate with a matching annotation.

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

fixed by patches in http://marc.info/?l=linux-kernel&m=122718681726939&w=2
and http://marc.info/?l=linux-kernel&m=122718656126513&w=2 but not yet in mainline
-----------------------------------------------------------------------------------------------------
WARNING: kernel/built-in.o(.text+0x10a50): Section mismatch in reference from the function notify_cpu_starting() to the variable .cpuinit.data:cpu_chain
The function notify_cpu_starting() references
the variable __cpuinitdata cpu_chain.
This is often because notify_cpu_starting lacks a __cpuinitdata
annotation or the annotation of cpu_chain is wrong.

WARNING: vmlinux.o(.text+0x34230): Section mismatch in reference from the function notify_cpu_starting() to the variable .cpuinit.data:cpu_chain
The function notify_cpu_starting() references
the variable __cpuinitdata cpu_chain.
This is often because notify_cpu_starting lacks a __cpuinitdata
annotation or the annotation of cpu_chain is wrong.

fixed by patch in http://marc.info/?l=linux-kernel&m=122533953711446&w=2 but not yet in mainline
----------------------------------------------------------------------------------------------------