Kyle McMartin wrote: > On Mon, Jul 31, 2006 at 03:37:46PM +0200, Stefan Richter wrote: >> 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. > > Odd, ISTR that it only needed to be defined at the point the inline was > used. Oh well, my bad. One would think so. Maybe it depends on the compiler version. (Actually I haven't checked scsi_transport.h myself but I recall fixing another header with the same issue. Although I don't remember anymore whether it lead to a warning or to an error and which gcc version I used then.) -- 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