summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/microcode.c
diff options
context:
space:
mode:
authorSam Ravnborg2007-06-01 09:47:10 +0200
committerLinus Torvalds2007-06-01 17:18:30 +0200
commitf8281a2b661d5f4f8081b387886187bbf190b92d (patch)
tree2d0b852109feeb2501e44cb03d827a2320f675cc /arch/i386/kernel/microcode.c
parentpm3fb: switching between X and fb fix (diff)
downloadkernel-qcow2-linux-f8281a2b661d5f4f8081b387886187bbf190b92d.tar.gz
kernel-qcow2-linux-f8281a2b661d5f4f8081b387886187bbf190b92d.tar.xz
kernel-qcow2-linux-f8281a2b661d5f4f8081b387886187bbf190b92d.zip
microcode: fix section mismatch warning
Fix the following section mismatch warnings in microcode.c: WARNING: arch/i386/kernel/built-in.o(.init.text+0x3966): Section mismatch: reference to .exit.text: (between 'microcode_init' and 'parse_maxcpus') WARNING: arch/i386/kernel/built-in.o(.init.text+0x3992): Section mismatch: reference to .exit.text: (between 'microcode_init' and 'parse_maxcpus') The warning are caused by a function marked __init that calls a function marked __exit. Functions marked __exit may be discarded either during link or run-time and thus the reference is not good. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/microcode.c')
-rw-r--r--arch/i386/kernel/microcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/microcode.c b/arch/i386/kernel/microcode.c
index 83f825f2e2d7..d865d041bea1 100644
--- a/arch/i386/kernel/microcode.c
+++ b/arch/i386/kernel/microcode.c
@@ -478,7 +478,7 @@ static int __init microcode_dev_init (void)
return 0;
}
-static void __exit microcode_dev_exit (void)
+static void microcode_dev_exit (void)
{
misc_deregister(&microcode_dev);
}