aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike-kernel@sf-tec.de>2007-02-16 04:46:25 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-02-16 11:14:42 -0500
commita9b7320294f885be6087bdef7a0e25922c36eb1b (patch)
tree21be1ac27fe8b0fee1d622ba425bd2f5dd2ea306 /include/scsi/scsi_transport.h
parente790b3dd2b59e2418923fa0122d53e57ffa5a868 (diff)
[SCSI] scsi_transport.h should include scsi_device.h
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. Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_transport.h')
-rw-r--r--include/scsi/scsi_transport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport.h b/include/scsi/scsi_transport.h
index cca1d4926d2a..3c18baa65a72 100644
--- a/include/scsi/scsi_transport.h
+++ b/include/scsi/scsi_transport.h
@@ -22,6 +22,7 @@
22 22
23#include <linux/transport_class.h> 23#include <linux/transport_class.h>
24#include <scsi/scsi_host.h> 24#include <scsi/scsi_host.h>
25#include <scsi/scsi_device.h>
25 26
26struct scsi_transport_template { 27struct scsi_transport_template {
27 /* the attribute containers */ 28 /* the attribute containers */