From: Sam Ravnborg Date: Wed, 30 Jan 2008 12:33:36 +0000 (+0100) Subject: x86: fix section mismatch warning in mcheck/mce_64.c X-Git-Tag: v2.6.25-rc1~1143^2~174 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e35669d017eac5bea4739f927b28e64731504e1;p=pandora-kernel.git x86: fix section mismatch warning in mcheck/mce_64.c Fix following warning: WARNING: arch/x86/kernel/cpu/mcheck/built-in.o(.text+0x752): Section mismatch: reference to .cpuinit.text:mce_create_device in 'mce_cpu_callback' mce_cpu_callback() is only used by mce_cpu_notofier. The notifier is only used for hotplugable cpu's as it is registered using register_hotcpu_notifier(), Annotate them both __cpuinit to fix the warning. Signed-off-by: Sam Ravnborg Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed