Skip to contentSkip to conversation

Bug: scsi/scsi_transport.h does not know about struct scsi_target

DISCUSSION Rolf Eike Beer 1 participant 1 message Mar 23, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

If you include <scsi/scsi_transport.h> and do not include <scsi/scsi_device.h> you will get the following error:

include/scsi/scsi_transport.h: In function `scsi_transport_target_data':
include/scsi/scsi_transport.h:78: error: dereferencing pointer to incomplete type
include/scsi/scsi_transport.h:79: error: dereferencing pointer to incomplete type
include/scsi/scsi_transport.h: In function `scsi_transport_device_data':
include/scsi/scsi_transport.h:86: error: dereferencing pointer to incomplete type
include/scsi/scsi_transport.h:87: error: dereferencing pointer to incomplete type

I suggest either including scsi_device.h in scsi_transport.h. Patch on request.

Eike