From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rolf Eike Beer Subject: [PATCH 3/3] Fix scsi/scsi_transport.h compile error Date: Tue, 26 Sep 2006 10:06:53 +0200 Message-ID: <11592580131198@messid.opensource.sf-tec.de> References: <11592580111076@messid.opensource.sf-tec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from mail.sf-mail.de ([62.27.20.61]:59842 "EHLO mail.sf-mail.de") by vger.kernel.org with ESMTP id S1750788AbWIZIGO (ORCPT ); Tue, 26 Sep 2006 04:06:14 -0400 In-Reply-To: <11592580111076@messid.opensource.sf-tec.de> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: akpm@osdl.org, linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com 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 --- commit 2ce61cfef5642b3a7414d2f430acf179f50f7228 tree 4d9c48a499dd47028bf28dfdd931c501efc32db3 parent 788fd16e408ca6c1008829d52bca9f13cbec64ce author Rolf Eike Beer Mon, 31 Jul 2006 09:08:09 +0200 committer Rolf Eike Beer 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 #include +#include struct scsi_transport_template { /* the attribute containers */