* ide: fix section mismatch warning
@ 2006-02-26 11:17 Sam Ravnborg
0 siblings, 0 replies; only message in thread
From: Sam Ravnborg @ 2006-02-26 11:17 UTC (permalink / raw)
To: B.Zolnierkiewicz, linux-ide, LKML, Andrew Morton
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>
---
Compiletime tested with allmodconfig on amd64 only.
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index b2cc437..3fdab56 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -2058,7 +2058,7 @@ static void __init parse_options (char *
}
}
-int init_module (void)
+int __init init_module (void)
{
parse_options(options);
return ide_init();
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-26 11:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-26 11:17 ide: fix section mismatch warning Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).