tree:
https://github.com/bvanassche/linux scsi-status
head: e3e8aaedcd689d1a2ae20024ed467d127bbe060a
commit: 87559dd4d6d375d2a9ac620763b0643fa80bd002 [14/15] Introduce struct scsi_status
config: mips-randconfig-r031-20210409 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/bvanassche/linux/commit/87559dd4d6d375d2a9ac620763b064...
git remote add bvanassche
https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 87559dd4d6d375d2a9ac620763b0643fa80bd002
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/ide/ide-dma.c: In function 'ide_dma_timeout_retry':
> drivers/ide/ide-dma.c:491:32: error: incompatible types when
assigning to type 'struct scsi_status' from type 'int'
491 |
scsi_req(hwif->rq)->result = 0;
| ^
vim +491 drivers/ide/ide-dma.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 440
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 441 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 442 * un-busy the port etc, and
clear any pending DMA status. we want to
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 443 * retry the current request in
pio mode instead of risking tossing it
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 444 * all away
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 445 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 446 ide_startstop_t
ide_dma_timeout_retry(ide_drive_t *drive, int error)
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 447 {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 448 ide_hwif_t *hwif =
drive->hwif;
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 449 const struct ide_dma_ops
*dma_ops = hwif->dma_ops;
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 450 struct ide_cmd *cmd =
&hwif->cmd;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 451 ide_startstop_t ret =
ide_stopped;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 452
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 453 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 454 * end current dma transaction
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 455 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 456
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 457 if (error < 0) {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 458 printk(KERN_WARNING "%s:
DMA timeout error\n", drive->name);
88b4132e101e60 Bartlomiej Zolnierkiewicz 2009-03-31 459 drive->waiting_for_dma =
0;
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 460
(void)dma_ops->dma_end(drive);
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 461 ide_dma_unmap_sg(drive, cmd);
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 462 ret = ide_error(drive,
"dma timeout error",
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 463
hwif->tp_ops->read_status(hwif));
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 464 } else {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 465 printk(KERN_WARNING "%s:
DMA timeout retry\n", drive->name);
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 466 if (dma_ops->dma_clear)
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 467
dma_ops->dma_clear(drive);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 468 printk(KERN_ERR "%s:
timeout waiting for DMA\n", drive->name);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 469 if
(dma_ops->dma_test_irq(drive) == 0) {
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 470 ide_dump_status(drive,
"DMA timeout",
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 471
hwif->tp_ops->read_status(hwif));
88b4132e101e60 Bartlomiej Zolnierkiewicz 2009-03-31 472 drive->waiting_for_dma =
0;
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 473
(void)dma_ops->dma_end(drive);
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 474 ide_dma_unmap_sg(drive,
cmd);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 475 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 476 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 477
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 478 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 479 * disable dma for now, but
remember that we did so because of
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 480 * a timeout -- we'll
reenable after we finish this next request
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 481 * (or rather the first chunk
of it) in pio.
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 482 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 483 drive->dev_flags |=
IDE_DFLAG_DMA_PIO_RETRY;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 484 drive->retry_pio++;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 485 ide_dma_off_quietly(drive);
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 486
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 487 /*
dd8717da6da9b0 Tejun Heo 2010-04-08 488 * make sure request is sane
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 489 */
dd8717da6da9b0 Tejun Heo 2010-04-08 490 if (hwif->rq)
17d5363b83f8c7 Christoph Hellwig 2017-04-20 @491
scsi_req(hwif->rq)->result = 0;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 492 return ret;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 493 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 494
:::::: The code at line 491 was first introduced by commit
:::::: 17d5363b83f8c73ef9109f75a4a9b578f31d842f scsi: introduce a result field in struct
scsi_request
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org