]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] cdrom/mcdx: section fixes
authorRandy Dunlap <rdunlap@xenotime.net>
Sun, 25 Jun 2006 12:48:38 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:16 +0000 (10:01 -0700)
Priority: not critical.
Make __mcdx_init() __init and static.  Saves a little memory.

Fix section mismatch warning and make the function static while there:
WARNING: drivers/cdrom/mcdx.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x8be) and 'mcdx_transfer'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/mcdx.c

index a0b580c22d80942dbd75536609076f219edce33b..0f6e7aab8d2cb18cc294b08919d87752fcf3444d 100644 (file)
@@ -1006,7 +1006,7 @@ static int mcdx_talk(struct s_drive_stuff *stuffp,
 
 /* MODULE STUFF ***********************************************************/
 
-int __mcdx_init(void)
+static int __init __mcdx_init(void)
 {
        int i;
        int drives = 0;