From: Sam Ravnborg 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 Signed-off-by: Andrew Morton --- drivers/block/floppy.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/block/floppy.c~block-floppy-fix-section-mismatch-warnings drivers/block/floppy.c --- devel/drivers/block/floppy.c~block-floppy-fix-section-mismatch-warnings 2006-02-27 17:14:23.000000000 -0800 +++ devel-akpm/drivers/block/floppy.c 2006-02-27 17:14:23.000000000 -0800 @@ -4613,7 +4613,7 @@ static void __init parse_floppy_cfg_stri } } -int init_module(void) +int __init init_module(void) { if (floppy) parse_floppy_cfg_string(floppy); _