]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Fix compile issues in fs/compat_ioctl.c when CONFIG_BLOCK is disabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 16 Jul 2008 13:52:00 +0000 (08:52 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Jul 2008 18:46:16 +0000 (11:46 -0700)
commit3c3622dcb64c76c9abd2e468f802db9ba523421c
tree0e1ad9be83fb88c9a3e11e4a215f5ec244241785
parente3621ee633810be1079d0fa65ac2c904f53b73fa
Fix compile issues in fs/compat_ioctl.c when CONFIG_BLOCK is disabled

Fix fs/compat_ioctl.c to handle CONFIG_BLOCK=n, CONFIG_SCSI=n to avoid
build errors:

In file included from include/scsi/scsi.h:12,
                 from fs/compat_ioctl.c:71:
include/scsi/scsi_cmnd.h:27:25: warning: "BLK_MAX_CDB" is not defined
include/scsi/scsi_cmnd.h:28:3: error: #error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
In file included from include/scsi/scsi.h:12,
                 from fs/compat_ioctl.c:71:
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:182: error: implicit declaration of function 'blk_bidi_rq'
include/scsi/scsi_cmnd.h:183: error: dereferencing pointer to incomplete type
include/scsi/scsi_cmnd.h: In function 'scsi_in':
include/scsi/scsi_cmnd.h:189: error: dereferencing pointer to incomplete type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/compat_ioctl.c