diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2006-03-25 06:07:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:53 -0500 |
commit | 1efa64696bc55cc396eefa9838a90d106dfab6bf (patch) | |
tree | 493b70cd6b38b89598f899a4312edbff7d5d9f02 /drivers/block/floppy.c | |
parent | fbd8ad30596409070801832335d3ea8cf1513ded (diff) |
[PATCH] block/floppy: fix section mismatch warnings
In latest -mm a number of section mismatch warnings are generated for
floppy.o like the following:
WARNING: drivers/block/floppy.o - Section mismatch: reference to \
.init.data: from .text between 'init_module' (at offset 0x6976) and \
'cleanup_module'
The warning are caused by a reference to floppy_init() which is __init from
init_module() which is not declared __init. Declaring init_module() _init
fixes this.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index fb2d0be7cdeb..840919bba76c 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -4594,7 +4594,7 @@ static void __init parse_floppy_cfg_string(char *cfg) | |||
4594 | } | 4594 | } |
4595 | } | 4595 | } |
4596 | 4596 | ||
4597 | int init_module(void) | 4597 | int __init init_module(void) |
4598 | { | 4598 | { |
4599 | if (floppy) | 4599 | if (floppy) |
4600 | parse_floppy_cfg_string(floppy); | 4600 | parse_floppy_cfg_string(floppy); |