]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ide: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Sat, 25 Mar 2006 11:07:11 +0000 (03:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:53 +0000 (08:22 -0800)
commitfbd8ad30596409070801832335d3ea8cf1513ded
tree4612b4565fe8de01f28a72d439742c91995fec05
parentc32ccd87bfd1414b0aabfcd8dbc7539ad23bcbaa
[PATCH] ide: fix section mismatch warning

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>
drivers/ide/ide.c