On 7/31/2006 3:14 PM, Kyle McMartin wrote: > On Mon, Jul 31, 2006 at 09:43:25AM +0200, Rolf Eike Beer wrote: >> 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. > > This should be solved with a "struct scsi_device;" decl, instead of > Yet More Header Dependancies... That function accesses members of the struct, i.e. the compiler needs to know offsets into struct scsi_device at this point. Therefore it needs the definition, not a declaration. -- Stefan Richter -=====-=-==- -=== ==--- http://arcgraph.de/sr/ - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html