Skip to content

Commit

Permalink
[PATCH] ide: fix section mismatch warning
Browse files Browse the repository at this point in the history
In latest -mm ide-code.o gave a number of warnings like the following:

WARNING: drivers/ide/ide-core.o - Section mismatch: reference to    \
.init.text: from .text between 'init_module' (at offset 0x1f97) and \
'cleanup_module'

The warning was caused by init_module() calling parse_option() and
ide_init() both declared __init.

Declaring init_module() __init fixes the warnings.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Sam Ravnborg authored and Linus Torvalds committed Mar 25, 2006
1 parent c32ccd8 commit fbd8ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ static void __init parse_options (char *line)
}
}

int init_module (void)
int __init init_module (void)
{
parse_options(options);
return ide_init();
Expand Down

0 comments on commit fbd8ad3

Please sign in to comment.