Skip to content

Commit bd099ef

Browse files
hongxu-jiagregkh
authored andcommitted
ide: ide-atapi: fix compile error with defining macro DEBUG
[ Upstream commit 8dc7a31 ] 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: 82ed4db ("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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7015ca8 commit bd099ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/ide/ide-atapi.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ int ide_cd_expiry(ide_drive_t *drive)
282282
struct request *rq = drive->hwif->rq;
283283
unsigned long wait = 0;
284284

285-
debug_log("%s: rq->cmd[0]: 0x%x\n", __func__, rq->cmd[0]);
285+
debug_log("%s: scsi_req(rq)->cmd[0]: 0x%x\n", __func__, scsi_req(rq)->cmd[0]);
286286

287287
/*
288288
* Some commands are *slow* and normally take a long time to complete.
@@ -463,7 +463,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
463463
return ide_do_reset(drive);
464464
}
465465

466-
debug_log("[cmd %x]: check condition\n", rq->cmd[0]);
466+
debug_log("[cmd %x]: check condition\n", scsi_req(rq)->cmd[0]);
467467

468468
/* Retry operation */
469469
ide_retry_pc(drive);
@@ -531,7 +531,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
531531
ide_pad_transfer(drive, write, bcount);
532532

533533
debug_log("[cmd %x] transferred %d bytes, padded %d bytes, resid: %u\n",
534-
rq->cmd[0], done, bcount, scsi_req(rq)->resid_len);
534+
scsi_req(rq)->cmd[0], done, bcount, scsi_req(rq)->resid_len);
535535

536536
/* And set the interrupt handler again */
537537
ide_set_handler(drive, ide_pc_intr, timeout);

0 commit comments

Comments
 (0)