public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] declare and export scsi_bus_type
@ 2002-12-12  1:46 Matt Domsch
  2002-12-12  9:12 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Domsch @ 2002-12-12  1:46 UTC (permalink / raw)
  To: linux-scsi; +Cc: mochel

Below please find a patch, written by Pat Mochel, to declare and export
scsi_bus_type.  My EDD code requires this to be exported in order to walk
the list of SCSI devices to match what BIOS discovered.

Please apply.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer, Architect
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

===== drivers/scsi/scsi.h 1.50 vs edited =====
--- 1.50/drivers/scsi/scsi.h	Thu Nov 28 08:09:53 2002
+++ edited/drivers/scsi/scsi.h	Thu Dec  5 19:05:27 2002
@@ -994,4 +994,6 @@
 extern int scsi_sysfs_register(void);
 extern void scsi_sysfs_unregister(void);
 
+extern struct bus_type scsi_bus_type;
+
 #endif
===== drivers/scsi/scsi_sysfs.c 1.1 vs edited =====
--- 1.1/drivers/scsi/scsi_sysfs.c	Thu Nov 28 12:54:06 2002
+++ edited/drivers/scsi/scsi_sysfs.c	Thu Dec  5 19:06:55 2002
@@ -84,7 +84,7 @@
 }
 
 
-static struct bus_type scsi_bus_type = {
+struct bus_type scsi_bus_type = {
         .name		= "scsi",
         .match		= scsi_bus_match,
 };
@@ -202,3 +202,5 @@
 	device_remove_file(&sdev->sdev_driverfs_dev, &dev_attr_type);
 	device_unregister(&sdev->sdev_driverfs_dev);
 }
+
+EXPORT_SYMBOL(scsi_bus_type);



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-12 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12  1:46 [PATCH] declare and export scsi_bus_type Matt Domsch
2002-12-12  9:12 ` Christoph Hellwig
2002-12-12 13:58   ` James Bottomley
2002-12-12 16:16     ` Patrick Mochel
2002-12-12 16:00   ` Patrick Mochel

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