RE: [PATCH 1/1] cciss: include scsi/scsi.h unconditionally

From: Cameron, Steve
Date: Fri Apr 13 2007 - 18:49:44 EST



Andrew Morton [mailto:akpm@xxxxxxxxxxxxxxxxxxxx] wrote:

> On Fri, 13 Apr 2007 09:23:12 -0500
> Stephen Cameron <steve.cameron@xxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/