]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcce91cefd1b6b11a92e3c28e92000cb5ad78eeb4
treeae73fd31036c499a49d05a7f55275aef48000384
parent01f6c5d74aadb7f0a0fed4bac7e5ca6f3bb4b6fd
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: a91f780c1d92 ("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