diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-09 14:42:40 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-10 03:17:14 +0100 |
commit | 4c1cb67c03511a4a404aaaeb206222d5bebdc4ca (patch) | |
tree | e87a7fa009ac62e568d80cbd33a26eeaa219483f /include/scsi | |
parent | scsi: return blk_status_t from scsi_init_io and ->init_command (diff) | |
download | linux-4c1cb67c03511a4a404aaaeb206222d5bebdc4ca.tar.xz linux-4c1cb67c03511a4a404aaaeb206222d5bebdc4ca.zip |
scsi: return blk_status_t from device handler ->prep_fn
Remove the last use of the old BLKPREP_* values, which get converted
to BLK_STS_* 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')
-rw-r--r-- | include/scsi/scsi_dh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h index c7bba2b24849..a862dc23c68d 100644 --- a/include/scsi/scsi_dh.h +++ b/include/scsi/scsi_dh.h @@ -69,7 +69,7 @@ struct scsi_device_handler { int (*attach)(struct scsi_device *); void (*detach)(struct scsi_device *); int (*activate)(struct scsi_device *, activate_complete, void *); - int (*prep_fn)(struct scsi_device *, struct request *); + blk_status_t (*prep_fn)(struct scsi_device *, struct request *); int (*set_params)(struct scsi_device *, const char *); void (*rescan)(struct scsi_device *); }; |