Hi,
After discovering that my compiler (gcc 2.7.2.3) refused to compile SCSI
(in Linux 2.3.13) as a module, I made the following patch to
linux/drivers/scsi/scsi.c. The module compiles fine with this patch, but
it is relatively untested. However, I didn't find it by trial and error,
but by looking in the new comments in linux/include/linux/init.h.
To save you from going through the same grief that I did, you should note
that there still is an undefined symbol: init_task_union. From what I've
seen, it doesn't look like that symbol belongs in the SCSI system at all,
so I've #ifndef'ed (_SCSI_H) out the definition of it
(in linux/sched.h) and the only use of it (in asm/pgtable.h). This is of
course a BIG kludge, and you should most definitely find another way
around it...
Have fun! :-)
===start of patch===
--- scsi.c.orig Mon Aug 16 14:34:48 1999
+++ scsi.c Mon Aug 16 14:28:57 1999
@@ -406,6 +406,8 @@
up(SCpnt->request.sem);
}
+#ifndef MODULE
+
static int __init scsi_logging_setup (char *str)
{
int tmp;
@@ -422,12 +424,16 @@
__setup("scsi_logging=", scsi_logging_setup);
+#endif /* MODULE */
+
#ifdef CONFIG_SCSI_MULTI_LUN
static int max_scsi_luns = 8;
#else
static int max_scsi_luns = 1;
#endif
+#ifndef MODULE
+
static int __init scsi_luns_setup (char *str)
{
int tmp;
@@ -443,6 +449,8 @@
}
__setup("max_scsi_luns=", scsi_luns_setup);
+
+#endif /* !MODULE */
/*
* Detecting SCSI devices :
===end of patch===
/* Steinar */
--
Homepage: http://members.xoom.com/sneeze/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]