2008-10-11 18:19:41

by Rufus & Azrael

[permalink] [raw]
Subject: [2.6.27-git1] compilation warning with mtrr_cleanup

Hello all,


I have this compilation warning with fresh 2.6.27-git1 kernel :

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

WARNING: kernel/built-in.o(.text+0x10690): 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.

Regards.