projects/linux·commit cad2af5e

[PATCH] cdrom/mcdx: section fixes

cad2af5e · Randy Dunlap <[email protected]> · 2006-06-25 05:48:38 -07:00

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 <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
cad2af5eb7470f9a0b85498f5ffac894e3cdcd27
Parents
474ab45a

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/cdrom/mcdx.cmodified+1−1View file

drivers/cdrom/mcdx.c

View file
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c
index a0b580c..0f6e7aa 100644
--- a/drivers/cdrom/mcdx.c
+++ b/drivers/cdrom/mcdx.c
@@ -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;