On Wed, Sep 06 2000, Lawrence Walton wrote:
> It appears that SCSI cdroms as modules are broken in 2.4.0-test8.
> It works fine 2.4.0-test7.
> 
> 
>  cat /dev/scd0
>  cat: /dev/scd0: No such device

Yup, apparently I was a bit too trigger happy.

-- 
* Jens Axboe <[EMAIL PROTECTED]>
* SuSE Labs
--- /opt/kernel/linux-2.4.0-test8-pre5/drivers/scsi/sr.c        Wed Sep  6 02:34:30 
2000
+++ drivers/scsi/sr.c   Wed Sep  6 20:07:28 2000
@@ -848,9 +848,10 @@
        return;
 }
 
+#ifdef MODULE
 int init_sr(void)
 {
-       sr_template.module = THIS_MODULE;
+       sr_template.module = &__this_module;
        return scsi_register_module(MODULE_SCSI_DEV, &sr_template);
 }
 
@@ -877,6 +878,7 @@
 
        sr_template.dev_max = 0;
 }
+#endif
 
 module_init(init_sr);
 module_exit(exit_sr);

Reply via email to