summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-11-09 14:42:40 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-09 19:17:14 -0700
commit4c1cb67c03511a4a404aaaeb206222d5bebdc4ca (patch)
treee87a7fa009ac62e568d80cbd33a26eeaa219483f /include/scsi
parent159b2cbf59f44f2a0c005c1f323f8f05fb0a19f8 (diff)
downloadlinux-4c1cb67c03511a4a404aaaeb206222d5bebdc4ca.tar.gz
linux-4c1cb67c03511a4a404aaaeb206222d5bebdc4ca.tar.bz2
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.h2
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 *);
};