Skip to content

Commit be31f9c

Browse files
Jean DelvareLinus Torvalds
authored andcommitted
[PATCH] microcode: fix mc_cpu_notifier section warning
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>
1 parent 5b149bc commit be31f9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/i386/kernel/microcode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
722722
return NOTIFY_OK;
723723
}
724724

725-
static struct notifier_block mc_cpu_notifier = {
725+
static struct notifier_block __cpuinitdata mc_cpu_notifier = {
726726
.notifier_call = mc_cpu_callback,
727727
};
728728

0 commit comments

Comments
 (0)