]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] microcode: fix mc_cpu_notifier section warning
authorJean Delvare <khali@linux-fr.org>
Fri, 22 Dec 2006 09:10:19 +0000 (01:10 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 22 Dec 2006 16:55:50 +0000 (08:55 -0800)
Structure mc_cpu_notifier references a __cpuinit function, but isn't
declared __cpuinitdata itself:

WARNING: arch/i386/kernel/microcode.o - Section mismatch: reference
to .init.text: from .data after 'mc_cpu_notifier' (at offset 0x118)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/microcode.c

index 47ffec57c0cb28f4aa0ef6a74fbe665f9c42824f..c8fa13721bcb8f3b3023f6a64208d4b2bcd95f94 100644 (file)
@@ -722,7 +722,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
        return NOTIFY_OK;
 }
 
-static struct notifier_block mc_cpu_notifier = {
+static struct notifier_block __cpuinitdata mc_cpu_notifier = {
        .notifier_call = mc_cpu_callback,
 };