OSDN Git Service

ide: ide-atapi: fix compile error with defining macro DEBUG
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 10 Nov 2017 07:59:17 +0000 (15:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:56:25 +0000 (19:56 -0700)
commit8dc7a31fbce5e2dbbacd83d910da37105181b054
treeae73fd31036c499a49d05a7f55275aef48000384
parentf906a6a0f42684715b552ccff9282b22cfe2b5a2
ide: ide-atapi: fix compile error with defining macro DEBUG

Compile ide-atapi failed with defining macro "DEBUG"
...
|drivers/ide/ide-atapi.c:285:52: error: 'struct request' has
no member named 'cmd'; did you mean 'csd'?
|  debug_log("%s: rq->cmd[0]: 0x%x\n", __func__, rq->cmd[0]);
...

Since we split the scsi_request out of struct request, it missed
do the same thing on debug_log

Fixes: 82ed4db499b8 ("block: split scsi_request out of struct request")

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ide/ide-atapi.c