Skip to content

Commit

Permalink
microcode: fix section mismatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Linus Torvalds committed Jun 1, 2007
1 parent 0bd327e commit f8281a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/microcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f8281a2

Please sign in to comment.