summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_cmnd.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-11-09 14:42:39 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-09 19:17:14 -0700
commit159b2cbf59f44f2a0c005c1f323f8f05fb0a19f8 (patch)
tree88ed5c3b080ef30d7a37807096e4244bf8981fc0 /include/scsi/scsi_cmnd.h
parent14784565f740e862adae4b1d7c91f51b4038c4f5 (diff)
downloadlinux-159b2cbf59f44f2a0c005c1f323f8f05fb0a19f8.tar.gz
linux-159b2cbf59f44f2a0c005c1f323f8f05fb0a19f8.tar.bz2
linux-159b2cbf59f44f2a0c005c1f323f8f05fb0a19f8.zip
scsi: return blk_status_t from scsi_init_io and ->init_command
Replace the old BLKPREP_* values with the BLK_STS_ ones that they are converted to later anyway. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/scsi/scsi_cmnd.h')
-rw-r--r--include/scsi/scsi_cmnd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h
index c891ada3c5c2..d6fd2aba0380 100644
--- a/include/scsi/scsi_cmnd.h
+++ b/include/scsi/scsi_cmnd.h
@@ -171,7 +171,7 @@ extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
size_t *offset, size_t *len);
extern void scsi_kunmap_atomic_sg(void *virt);
-extern int scsi_init_io(struct scsi_cmnd *cmd);
+extern blk_status_t scsi_init_io(struct scsi_cmnd *cmd);
#ifdef CONFIG_SCSI_DMA
extern int scsi_dma_map(struct scsi_cmnd *cmd);