Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Sam Ravnborg and committed by
Linus Torvalds
1efa6469 fbd8ad30

+1 -1
+1 -1
drivers/block/floppy.c
··· 4594 4594 } 4595 4595 } 4596 4596 4597 - int init_module(void) 4597 + int __init init_module(void) 4598 4598 { 4599 4599 if (floppy) 4600 4600 parse_floppy_cfg_string(floppy);