Skip to contentSkip to conversation

Fix scsi/scsi_transport.h compile error

PATCH New [email protected] 1 participant 1 message Dec 19, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 9/26 Fix scsi/scsi_transport.h compile error

From: Rolf Eike Beer <[email protected]>

scsi_transport.h defines the inline function scsi_transport_device_data() that dereferences a pointer of "struct scsi_device *". Since the struct is not known by the header this might break compilation.

Include scsi/scsi_device.h to not rely on users doing the correct magic include order.

---

 include/scsi/scsi_transport.h |    1 +
 1 files changed, 1 insertion(+)
include/scsi/scsi_transport.h renamed from include/scsi/scsi_transport.h~fix-scsi-scsi_transporth-compile-error +1 -0
diff -puN include/scsi/scsi_transport.h~fix-scsi-scsi_transporth-compile-error include/scsi/scsi_transport.h
@@ -22,6 +22,7 @@
 
 #include <linux/transport_class.h>
 #include <scsi/scsi_host.h>
+#include <scsi/scsi_device.h>
 
 struct scsi_transport_template {
 	/* the attribute containers */

_