From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: akpm@osdl.org, linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com
Subject: [PATCH 3/3] Fix scsi/scsi_transport.h compile error
Date: Tue, 26 Sep 2006 10:06:53 +0200 [thread overview]
Message-ID: <11592580131198@messid.opensource.sf-tec.de> (raw)
In-Reply-To: <11592580111076@messid.opensource.sf-tec.de>
Fix scsi/scsi_transport.h compile error
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>
---
commit 2ce61cfef5642b3a7414d2f430acf179f50f7228
tree 4d9c48a499dd47028bf28dfdd931c501efc32db3
parent 788fd16e408ca6c1008829d52bca9f13cbec64ce
author Rolf Eike Beer <eike-kernel@sf-tec.de> Mon, 31 Jul 2006 09:08:09 +0200
committer Rolf Eike Beer <beer@siso-eb-i34d.silicon-software.de> Mon, 31 Jul 2006 09:08:09 +0200
include/scsi/scsi_transport.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/scsi/scsi_transport.h b/include/scsi/scsi_transport.h
index cca1d49..3c18baa 100644
--- a/include/scsi/scsi_transport.h
+++ b/include/scsi/scsi_transport.h
@@ -22,6 +22,7 @@ #define SCSI_TRANSPORT_H
#include <linux/transport_class.h>
#include <scsi/scsi_host.h>
+#include <scsi/scsi_device.h>
struct scsi_transport_template {
/* the attribute containers */
prev parent reply other threads:[~2006-09-26 8:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 8:06 [PATCH 0/3] [SCSI] Small scsi fixes and cleanups Rolf Eike Beer
2006-09-26 8:06 ` [PATCH 2/3] [SCSI] remove extra newline from info message Rolf Eike Beer
2006-09-26 8:06 ` [PATCH 1/3] [SCSI] aic7xxx: mark ahd_pci_ident_table and ahd_num_pci_devs static Rolf Eike Beer
2006-09-26 8:06 ` Rolf Eike Beer [this message]
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=11592580131198@messid.opensource.sf-tec.de \
--to=eike-kernel@sf-tec.de \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.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