mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cdrom/mcdx: section fixes
@ 2006-06-09  3:42 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-06-09  3:42 UTC (permalink / raw)
  To: lkml; +Cc: heiko, axboe, akpm

From: Randy Dunlap <rdunlap@xenotime.net>

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>
---
 drivers/cdrom/mcdx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2617-rc6.orig/drivers/cdrom/mcdx.c
+++ linux-2617-rc6/drivers/cdrom/mcdx.c
@@ -1006,7 +1006,7 @@ static int mcdx_talk(struct s_drive_stuf
 
 /* MODULE STUFF ***********************************************************/
 
-int __mcdx_init(void)
+static int __init __mcdx_init(void)
 {
 	int i;
 	int drives = 0;


---

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-09  3:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09  3:42 [PATCH] cdrom/mcdx: section fixes Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®