From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Kyle McMartin <kyle@parisc-linux.org>
Cc: Rolf Eike Beer <eike-kernel@sf-tec.de>,
linux-scsi@vger.kernel.org,
James Bottomley <James.Bottomley@steeleye.com>
Subject: Re: [PATCH] Fix scsi/scsi_transport.h compile error
Date: Mon, 31 Jul 2006 15:37:46 +0200 [thread overview]
Message-ID: <44CE07AA.9030202@s5r6.in-berlin.de> (raw)
In-Reply-To: <20060731131446.GB6087@athena.road.mcmartin.ca>
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/
next prev parent reply other threads:[~2006-07-31 13:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 7:43 [PATCH] Fix scsi/scsi_transport.h compile error Rolf Eike Beer
2006-07-31 13:14 ` Kyle McMartin
2006-07-31 13:37 ` Stefan Richter [this message]
2006-07-31 14:38 ` Kyle McMartin
2006-07-31 15:26 ` Stefan Richter
2006-08-01 6:10 ` Rolf Eike Beer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44CE07AA.9030202@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=James.Bottomley@steeleye.com \
--cc=eike-kernel@sf-tec.de \
--cc=kyle@parisc-linux.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox