From: akpm@osdl.org Subject: [patch 09/26] Fix scsi/scsi_transport.h compile error Date: Tue, 19 Dec 2006 13:14:44 -0800 Message-ID: <200612192114.kBJLEjN6010700@shell0.pdx.osdl.net> Return-path: Received: from smtp.osdl.org ([65.172.181.25]:36018 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932975AbWLSVO4 (ORCPT ); Tue, 19 Dec 2006 16:14:56 -0500 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James.Bottomley@steeleye.com Cc: linux-scsi@vger.kernel.org, akpm@osdl.org, eike-kernel@sf-tec.de From: Rolf Eike Beer 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 Cc: James Bottomley Signed-off-by: Andrew Morton --- include/scsi/scsi_transport.h | 1 + 1 files changed, 1 insertion(+) diff -puN include/scsi/scsi_transport.h~fix-scsi-scsi_transporth-compile-error include/scsi/scsi_transport.h --- a/include/scsi/scsi_transport.h~fix-scsi-scsi_transporth-compile-error +++ a/include/scsi/scsi_transport.h @@ -22,6 +22,7 @@ #include #include +#include struct scsi_transport_template { /* the attribute containers */ _