Comment 3 for bug 7612

Revision history for this message
In , Sven Luther (sven-luther) wrote : Re: Bug#268128: kernel-source-2.6.8: compile error in drivers/block/scsi_ioctl.c

On Thu, Aug 26, 2004 at 10:17:34AM +0200, Bastian Kleineidam wrote:
> Package: kernel-source-2.6.8
> Version: 2.6.8-3
> Severity: normal
>
> Hi,
>
> with the -3 source I get compile errors (-2 compiled fine):
> [...]
> CC drivers/block/scsi_ioctl.o
> drivers/block/scsi_ioctl.c: In function `verify_command':
> drivers/block/scsi_ioctl.c:131: error: `VERIFY_16' undeclared (first use in this function)
> drivers/block/scsi_ioctl.c:131: error: (Each undeclared identifier is reported only once
> drivers/block/scsi_ioctl.c:131: error: for each function it appears in.)
> drivers/block/scsi_ioctl.c:131: error: nonconstant array index in initializer
> drivers/block/scsi_ioctl.c:131: error: (near initialization for `cmd_type')
> drivers/block/scsi_ioctl.c:181: error: `GPCMD_SEND_CUE_SHEET' undeclared (first use in this function)
> drivers/block/scsi_ioctl.c:181: error: nonconstant array index in initializer
> drivers/block/scsi_ioctl.c:181: error: (near initialization for `cmd_type')
> make[4]: *** [drivers/block/scsi_ioctl.o] Error 1
> make[3]: *** [drivers/block] Error 2
> make[2]: *** [drivers] Error 2
> make[2]: Leaving directory `/usr/src/kernel-source-2.6.8'
> make[1]: *** [stamp-build] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
> make: *** [kernel] Error 2
>
> I did a recursive grep for both VERIFY_16 and GPCMD_SEND_CUE_SHEET and
> they do not seem to be defined anywhere.
> Perhaps the new safe-for-copy scsi command patch is incomplete?
>
> My .config is attached.
>
> Greetings, Bastian
>
>
> PS: I left the severity normal for now since I don't know if I forgot
> something to include or to patch ;)

The attached patch by Jens Schmalzing fixes this issue, but i would still like
for Christoph to look at it.

Friendly,

Sven Luther