]> 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)
commit36ee2fb6eb1db354d1ad5f7eb1ced15b35e76ab8
treeae73fd31036c499a49d05a7f55275aef48000384
parent56593f7a0214c452bbd22d6ce324e2556090bbf1
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: e5e0f7fb06a0 ("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