Skip to contentSkip to conversation

2.6: modular scsi/mca_53c9x doesn't work (fwd)

PATCH In review Adrian Bunk 2 participants 4 messages Jun 14, 2004 – Jun 15, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6: modular scsi/mca_53c9x doesn't work (fwd)

The issue described in the mail forwarded below is still present in 2.6.7-rc3-mm2 (but not specific to -mm).

I'd suggest the following workaround:

drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +1 -1
@@ -1136,7 +1136,7 @@
 	  than 1 device on a SCSI bus. The normal answer therefore is N.
 
 config SCSI_MCA_53C9X
-	tristate "NCR MCA 53C9x SCSI support"
+	bool "NCR MCA 53C9x SCSI support"
 	depends on MCA_LEGACY && SCSI && BROKEN_ON_SMP
 	help
 	  Some MicroChannel machines, notably the NCR 35xx line, use a SCSI

----- Forwarded message from Adrian Bunk <[email protected]> -----

Date: Sat, 20 Dec 2003 00:17:12 +0100
From: Adrian Bunk <[email protected]>
To: [email protected], [email protected]
Cc: [email protected]
Subject: 2.6: modular scsi/mca_53c9x doesn't work

I got the following mesage when trying to build modular a mca_53c9x in 2.6.0-test11-mm1:

<-- snip -->

...
*** Warning: "esp_reset" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_abort" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_queue" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esps_in_use" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_initialize" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_allocate" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_intr" [drivers/scsi/mca_53c9x.ko] undefined! *** Warning: "esp_deallocate" [drivers/scsi/mca_53c9x.ko] undefined!
...

<-- snip -->

It seems there are some EXPORT_SYMBOL's needed in NCR53C9x.c?

cu
Adrian

Signature · 12 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

----- End forwarded message -----
#1 lore raw
Quoted 4 lines · Adrian Bunk

The issue described in the mail forwarded below is still present in 2.6.7-rc3-mm2 (but not specific to -mm).

I'd suggest the following workaround:

Please add the exports instead. It'll affect all the other 53C9X-based drivers aswell.

#2 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Adrian Bunk

The issue described in the mail forwarded below is still present in 2.6.7-rc3-mm2 (but not specific to -mm).

I'd suggest the following workaround:

Please add the exports instead. It'll affect all the other 53C9X-based drivers aswell.

This sounds like a better solution.

Patch below.

cu
Adrian

drivers/scsi/NCR53C9x.c renamed from drivers/scsi/NCR53C9x.c.old +11 -0
@@ -3646,4 +3646,15 @@
 }
 #endif
 
+EXPORT_SYMBOL(esp_abort);
+EXPORT_SYMBOL(esp_allocate);
+EXPORT_SYMBOL(esp_deallocate);
+EXPORT_SYMBOL(esp_initialize);
+EXPORT_SYMBOL(esp_intr);
+EXPORT_SYMBOL(esp_queue);
+EXPORT_SYMBOL(esp_reset);
+EXPORT_SYMBOL(esp_slave_alloc);
+EXPORT_SYMBOL(esp_slave_destroy);
+EXPORT_SYMBOL(esps_in_use);
+
 MODULE_LICENSE("GPL");
#3 lore raw
Quoted 25 lines · Adrian Bunk
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Adrian Bunk

The issue described in the mail forwarded below is still present in 2.6.7-rc3-mm2 (but not specific to -mm).

I'd suggest the following workaround:

Please add the exports instead. It'll affect all the other 53C9X-based drivers aswell.

This sounds like a better solution.

Patch below.

cu
Adrian

drivers/scsi/NCR53C9x.c renamed from drivers/scsi/NCR53C9x.c.old +2 -0
@@ -3646,4 +3646,15 @@
 }
 #endif
 
+EXPORT_SYMBOL(esp_abort);
+EXPORT_SYMBOL(esp_allocate);

drivers/scsi/NCR53C9x.c line 3660

Quoted 10 lines
drivers/scsi/NCR53C9x.c renamed from drivers/scsi/NCR53C9x.c.old +9 -0
+EXPORT_SYMBOL(esp_deallocate);
+EXPORT_SYMBOL(esp_initialize);
+EXPORT_SYMBOL(esp_intr);
+EXPORT_SYMBOL(esp_queue);
+EXPORT_SYMBOL(esp_reset);
+EXPORT_SYMBOL(esp_slave_alloc);
+EXPORT_SYMBOL(esp_slave_destroy);
+EXPORT_SYMBOL(esps_in_use);
+
 MODULE_LICENSE("GPL");

Looks good to me, thanks.