* [PATCH 1/1] cciss: include scsi/scsi.h unconditionally
@ 2007-04-13 14:23 Stephen Cameron
2007-04-13 21:34 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Cameron @ 2007-04-13 14:23 UTC (permalink / raw)
To: linux-kernel, linux-scsi, akpm, jens.axboe, mike.miller, james.bottomley
Make cciss unconditionally include scsi/scsi.h
From: Stephen M. Cameron <steve.cameron@hp.com>
Signed-off-by: Stephen M. Cameron <steve.cameron@hp.com>
---
drivers/block/cciss.c | 1 +
drivers/block/cciss_scsi.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/block/cciss.c~include_scsi_h_unconditionally drivers/block/cciss.c
--- linux-2.6.21-rc6/drivers/block/cciss.c~include_scsi_h_unconditionally 2007-04-13 08:23:07.000000000 -0500
+++ linux-2.6.21-rc6-scameron/drivers/block/cciss.c 2007-04-13 08:25:05.000000000 -0500
@@ -45,6 +45,7 @@
#include <linux/blkdev.h>
#include <linux/genhd.h>
#include <linux/completion.h>
+#include <scsi/scsi.h>
#include <scsi/sg.h>
#include <scsi/scsi_ioctl.h>
#include <linux/cdrom.h>
diff -puN drivers/block/cciss_scsi.c~include_scsi_h_unconditionally drivers/block/cciss_scsi.c
--- linux-2.6.21-rc6/drivers/block/cciss_scsi.c~include_scsi_h_unconditionally 2007-04-13 08:23:53.000000000 -0500
+++ linux-2.6.21-rc6-scameron/drivers/block/cciss_scsi.c 2007-04-13 08:24:34.000000000 -0500
@@ -35,7 +35,6 @@
#include <asm/atomic.h>
-#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] cciss: include scsi/scsi.h unconditionally
2007-04-13 14:23 [PATCH 1/1] cciss: include scsi/scsi.h unconditionally Stephen Cameron
@ 2007-04-13 21:34 ` Andrew Morton
2007-04-13 22:48 ` Cameron, Steve
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2007-04-13 21:34 UTC (permalink / raw)
To: steve.cameron
Cc: linux-kernel, linux-scsi, jens.axboe, mike.miller, james.bottomley
On Fri, 13 Apr 2007 09:23:12 -0500
Stephen Cameron <steve.cameron@hp.com> wrote:
> Make cciss unconditionally include scsi/scsi.h
For what reason?
>
> From: Stephen M. Cameron <steve.cameron@hp.com>
> Signed-off-by: Stephen M. Cameron <steve.cameron@hp.com>
>
> ---
>
> drivers/block/cciss.c | 1 +
> drivers/block/cciss_scsi.c | 1 -
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/block/cciss.c~include_scsi_h_unconditionally drivers/block/cciss.c
> --- linux-2.6.21-rc6/drivers/block/cciss.c~include_scsi_h_unconditionally 2007-04-13 08:23:07.000000000 -0500
> +++ linux-2.6.21-rc6-scameron/drivers/block/cciss.c 2007-04-13 08:25:05.000000000 -0500
> @@ -45,6 +45,7 @@
> #include <linux/blkdev.h>
> #include <linux/genhd.h>
> #include <linux/completion.h>
> +#include <scsi/scsi.h>
> #include <scsi/sg.h>
> #include <scsi/scsi_ioctl.h>
> #include <linux/cdrom.h>
> diff -puN drivers/block/cciss_scsi.c~include_scsi_h_unconditionally drivers/block/cciss_scsi.c
> --- linux-2.6.21-rc6/drivers/block/cciss_scsi.c~include_scsi_h_unconditionally 2007-04-13 08:23:53.000000000 -0500
> +++ linux-2.6.21-rc6-scameron/drivers/block/cciss_scsi.c 2007-04-13 08:24:34.000000000 -0500
> @@ -35,7 +35,6 @@
>
> #include <asm/atomic.h>
>
> -#include <scsi/scsi.h>
> #include <scsi/scsi_cmnd.h>
> #include <scsi/scsi_device.h>
> #include <scsi/scsi_host.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] cciss: include scsi/scsi.h unconditionally
2007-04-13 21:34 ` Andrew Morton
@ 2007-04-13 22:48 ` Cameron, Steve
0 siblings, 0 replies; 3+ messages in thread
From: Cameron, Steve @ 2007-04-13 22:48 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-kernel, linux-scsi, jens.axboe, Miller, Mike (OS Dev),
james.bottomley
Andrew Morton [mailto:akpm@linux-foundation.org] wrote:
> On Fri, 13 Apr 2007 09:23:12 -0500
> Stephen Cameron <steve.cameron@hp.com> wrote:
>
> > Make cciss unconditionally include scsi/scsi.h
>
> For what reason?
Because the use of:
case SCSI_IOCTL_GET_IDLUN:
case SCSI_IOCTL_GET_BUS_NUMBER:
At first, I thought the solution should be make
cciss dependent on CONFIG_SCSI. Then James Bottomley
convinced me otherwise, and my first instinct was just
to comment out those cases above, since they fall through
to a default case anyway. Then Christoph Hellwig commented
that with CONFIG_SCSI, we picked up scsi/scsi.h which made
it compile, but only accidentally. So then I thought to
include scsi/scsi.h unconditionally. If it would be preferable
to just comment out those cases and let the default case
handle it, that's fine be me too.
-- steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-13 22:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13 14:23 [PATCH 1/1] cciss: include scsi/scsi.h unconditionally Stephen Cameron
2007-04-13 21:34 ` Andrew Morton
2007-04-13 22:48 ` Cameron, Steve
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®