Re: [build fix] Re: [GIT PATCH] SCSI part 1

From: Matthew Wilcox
Date: Wed Jul 16 2008 - 09:29:22 EST


On Wed, Jul 16, 2008 at 03:15:43PM +0200, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@xxxxxxx> wrote:
>
> > > scsi_cmnd.h depends on symbols defined in blkdev.h. The fix is to
> > > include blkdev.h as well.
> >
> > that wont work - a better replacement fix is the one below. The
> > problem is that scsi.h is included even on !CONFIG_BLOCK and then the
> > BLK_MAX_CDB symbol is meaningless.
>
> -v3 .. the new methods need to be under #ifdef CONFIG_BLOCK as well.
> Note my patch is just a quick RFC, this can probably be done cleaner.

Maybe we should just #ifdef CONFIG_BLOCK the inclusion of scsi/*.h in
fs/compat_ioctl.h?

--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
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/