Skip to content

Commit

Permalink
[PATCH] cdrom/mcdx: section fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jun 25, 2006
1 parent 474ab45 commit cad2af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cdrom/mcdx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cad2af5

Please sign in to comment.