From: Sam Ravnborg Date: Sat, 25 Mar 2006 11:07:11 +0000 (-0800) Subject: [PATCH] ide: fix section mismatch warning X-Git-Tag: v2.6.17-rc1~823 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbd8ad30596409070801832335d3ea8cf1513ded;p=pandora-kernel.git [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 Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed