Skip to content

Commit a9b7320

Browse files
DerDakonJames Bottomley
authored andcommitted
[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>
1 parent e790b3d commit a9b7320

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/scsi/scsi_transport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include <linux/transport_class.h>
2424
#include <scsi/scsi_host.h>
25+
#include <scsi/scsi_device.h>
2526

2627
struct scsi_transport_template {
2728
/* the attribute containers */

0 commit comments

Comments
 (0)