lkml.org 
[lkml]   [2000]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] sr.c 2.4.0-test8-pre5 breakage
Heya acme... seems you fixed the sr.c driver a bit too much and
killed an #ifdef MODULE that was needed if you build without
modules (as I do on some of my SPARCs)... this change was made
in 2.4.0-test8-pre5...

drivers/scsi/scsidrv.o: In function `init_sr':
drivers/scsi/scsidrv.o(.text+0x1ece8): undefined reference to
`scsi_register_module'
drivers/scsi/scsidrv.o: In function `exit_sr':
drivers/scsi/scsidrv.o(.text+0x1ed08): undefined reference to
`scsi_unregister_module'
make: *** [vmlinux] Error 1

Patch is as follows:

--- linux/drivers/scsi/sr.c Wed Sep 6 02:38:24 2000
+++ linux-test/drivers/scsi/sr.c Wed Sep 6 02:37:18 2000
@@ -848,6 +848,8 @@
return;
}

+#ifdef MODULE
+
int init_sr(void)
{
sr_template.module = THIS_MODULE;
@@ -880,3 +882,5 @@

module_init(init_sr);
module_exit(exit_sr);
+
+#endif /* MODULE */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.045 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site