linux-next: build failure after merge of the block tree
Hi Jens,
After merging the block tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/nvme/host/scsi.c: In function 'nvme_scsi_translate':drivers/nvme/host/scsi.c:2350:9: error: 'BLK_MAX_CDB' undeclared (first use in this function)
u8 cmd[BLK_MAX_CDB];
^
drivers/nvme/host/scsi.c:2350:9: note: each undeclared identifier is reported only once for each function it appears in
drivers/nvme/host/scsi.c:2350:5: warning: unused variable 'cmd' [-Wunused-variable]
u8 cmd[BLK_MAX_CDB];
^
drivers/nvme/host/scsi.c: In function 'nvme_sg_io':
drivers/nvme/host/scsi.c:2454:20: error: 'BLK_MAX_CDB' undeclared (first use in this function)
if (hdr.cmd_len > BLK_MAX_CDB)
^Caused by commit
82ed4db499b8 ("block: split scsi_request out of struct request")
I have used the block tree from next-20170125 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 18 lines · Stephen Rothwell
Hi Jens,
After merging the block tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/nvme/host/scsi.c: In function 'nvme_scsi_translate':drivers/nvme/host/scsi.c:2350:9: error: 'BLK_MAX_CDB' undeclared (first use in this function)u8 cmd[BLK_MAX_CDB]; ^ drivers/nvme/host/scsi.c:2350:9: note: each undeclared identifier is reported only once for each function it appears in drivers/nvme/host/scsi.c:2350:5: warning: unused variable 'cmd' [-Wunused-variable] u8 cmd[BLK_MAX_CDB]; ^ drivers/nvme/host/scsi.c: In function 'nvme_sg_io': drivers/nvme/host/scsi.c:2454:20: error: 'BLK_MAX_CDB' undeclared (first use in this function) if (hdr.cmd_len > BLK_MAX_CDB) ^
Quoted 5 lines
Caused by commit
82ed4db499b8("block: splitscsi_requestout of struct request")I have used the block tree from next-20170125 for today.
Huh, I wonder how that snuck past my allmodconfig builds, that looks like a clear failure.
Signature · 1 line
Jens Axboe
Quoted 19 lines · Jens Axboe
Quoted 18 lines · Stephen Rothwell
Hi Jens,
After merging the block tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/nvme/host/scsi.c: In function 'nvme_scsi_translate':drivers/nvme/host/scsi.c:2350:9: error: 'BLK_MAX_CDB' undeclared (first use in this function)u8 cmd[BLK_MAX_CDB]; ^ drivers/nvme/host/scsi.c:2350:9: note: each undeclared identifier is reported only once for each function it appears in drivers/nvme/host/scsi.c:2350:5: warning: unused variable 'cmd' [-Wunused-variable] u8 cmd[BLK_MAX_CDB]; ^ drivers/nvme/host/scsi.c: In function 'nvme_sg_io': drivers/nvme/host/scsi.c:2454:20: error: 'BLK_MAX_CDB' undeclared (first use in this function) if (hdr.cmd_len > BLK_MAX_CDB) ^
Quoted 8 lines
Quoted 5 lines
Caused by commit
82ed4db499b8("block: splitscsi_requestout of struct request")I have used the block tree from next-20170125 for today.
Huh, I wonder how that snuck past my allmodconfig builds, that looks like a clear failure.
Fixed, sorry about that.
Signature · 1 line
Jens Axboe
Quoted 2 lines · Jens Axboe
Huh, I wonder how that snuck past my allmodconfig builds, that looks like a clear failure.
I also did tons of test builds and never saw it, not sure why the NVMe-SCSI code still someone how an implicit include of scsi_cmnd.h.
But in the end it should not be using the defintion anyway, and I sent a patch on Saturday so that it doesn't:
[PATCH 1/5] nvme/scsi: don't rely on BLK_MAX_CDB
might make sense to expedite that.