linux/arch/x86/kernel/cpu/mcheck
Satyam Sharma 25d1b51677 i386: Fix section mismatch
Fix bugzilla #8679

WARNING: arch/i386/kernel/built-in.o(.data+0x2148): Section mismatch: reference
to .init.text: (between 'thermal_throttle_cpu_notifier' and 'mtrr_mutex')

comes because struct notifier_block thermal_throttle_cpu_notifier in
arch/i386/kernel/cpu/mcheck/therm_throt.c goes in .data section but the
notifier callback function itself has been marked __cpuinit which becomes
__init == .init.text when HOTPLUG_CPU=n.  The warning is bogus because the
callback will never be called out if HOTPLUG_CPU=n in the first place (as
one can see from kernel/cpu.c, the cpu_chain itself is __cpuinitdata :-)

So, let's mark thermal_throttle_cpu_notifier as __cpuinitdata to fix
the section mismatch warning.

[ tglx: arch/x86 adaptation ]

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-17 20:15:25 +02:00
..
k7.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
Makefile i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
mce.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
mce.h i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
non-fatal.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
p4.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
p5.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
p6.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00
therm_throt.c i386: Fix section mismatch 2007-10-17 20:15:25 +02:00
winchip.c i386: move kernel/cpu/mcheck 2007-10-11 11:16:25 +02:00