diff options
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r-- | drivers/block/sx8.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index c8e072caf56f..08586dc14e85 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -745,7 +745,7 @@ static unsigned int carm_fill_get_fw_ver(struct carm_host *host, | |||
745 | 745 | ||
746 | static inline void carm_end_request_queued(struct carm_host *host, | 746 | static inline void carm_end_request_queued(struct carm_host *host, |
747 | struct carm_request *crq, | 747 | struct carm_request *crq, |
748 | int error) | 748 | blk_status_t error) |
749 | { | 749 | { |
750 | struct request *req = crq->rq; | 750 | struct request *req = crq->rq; |
751 | int rc; | 751 | int rc; |
@@ -791,7 +791,7 @@ static inline void carm_round_robin(struct carm_host *host) | |||
791 | } | 791 | } |
792 | 792 | ||
793 | static inline void carm_end_rq(struct carm_host *host, struct carm_request *crq, | 793 | static inline void carm_end_rq(struct carm_host *host, struct carm_request *crq, |
794 | int error) | 794 | blk_status_t error) |
795 | { | 795 | { |
796 | carm_end_request_queued(host, crq, error); | 796 | carm_end_request_queued(host, crq, error); |
797 | if (max_queue == 1) | 797 | if (max_queue == 1) |
@@ -869,14 +869,14 @@ queue_one_request: | |||
869 | sg = &crq->sg[0]; | 869 | sg = &crq->sg[0]; |
870 | n_elem = blk_rq_map_sg(q, rq, sg); | 870 | n_elem = blk_rq_map_sg(q, rq, sg); |
871 | if (n_elem <= 0) { | 871 | if (n_elem <= 0) { |
872 | carm_end_rq(host, crq, -EIO); | 872 | carm_end_rq(host, crq, BLK_STS_IOERR); |
873 | return; /* request with no s/g entries? */ | 873 | return; /* request with no s/g entries? */ |
874 | } | 874 | } |
875 | 875 | ||
876 | /* map scatterlist to PCI bus addresses */ | 876 | /* map scatterlist to PCI bus addresses */ |
877 | n_elem = pci_map_sg(host->pdev, sg, n_elem, pci_dir); | 877 | n_elem = pci_map_sg(host->pdev, sg, n_elem, pci_dir); |
878 | if (n_elem <= 0) { | 878 | if (n_elem <= 0) { |
879 | carm_end_rq(host, crq, -EIO); | 879 | carm_end_rq(host, crq, BLK_STS_IOERR); |
880 | return; /* request with no s/g entries? */ | 880 | return; /* request with no s/g entries? */ |
881 | } | 881 | } |
882 | crq->n_elem = n_elem; | 882 | crq->n_elem = n_elem; |
@@ -937,7 +937,7 @@ queue_one_request: | |||
937 | 937 | ||
938 | static void carm_handle_array_info(struct carm_host *host, | 938 | static void carm_handle_array_info(struct carm_host *host, |
939 | struct carm_request *crq, u8 *mem, | 939 | struct carm_request *crq, u8 *mem, |
940 | int error) | 940 | blk_status_t error) |
941 | { | 941 | { |
942 | struct carm_port *port; | 942 | struct carm_port *port; |
943 | u8 *msg_data = mem + sizeof(struct carm_array_info); | 943 | u8 *msg_data = mem + sizeof(struct carm_array_info); |
@@ -997,7 +997,7 @@ out: | |||
997 | 997 | ||
998 | static void carm_handle_scan_chan(struct carm_host *host, | 998 | static void carm_handle_scan_chan(struct carm_host *host, |
999 | struct carm_request *crq, u8 *mem, | 999 | struct carm_request *crq, u8 *mem, |
1000 | int error) | 1000 | blk_status_t error) |
1001 | { | 1001 | { |
1002 | u8 *msg_data = mem + IOC_SCAN_CHAN_OFFSET; | 1002 | u8 *msg_data = mem + IOC_SCAN_CHAN_OFFSET; |
1003 | unsigned int i, dev_count = 0; | 1003 | unsigned int i, dev_count = 0; |
@@ -1029,7 +1029,7 @@ out: | |||
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | static void carm_handle_generic(struct carm_host *host, | 1031 | static void carm_handle_generic(struct carm_host *host, |
1032 | struct carm_request *crq, int error, | 1032 | struct carm_request *crq, blk_status_t error, |
1033 | int cur_state, int next_state) | 1033 | int cur_state, int next_state) |
1034 | { | 1034 | { |
1035 | DPRINTK("ENTER\n"); | 1035 | DPRINTK("ENTER\n"); |
@@ -1045,7 +1045,7 @@ static void carm_handle_generic(struct carm_host *host, | |||
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | static inline void carm_handle_rw(struct carm_host *host, | 1047 | static inline void carm_handle_rw(struct carm_host *host, |
1048 | struct carm_request *crq, int error) | 1048 | struct carm_request *crq, blk_status_t error) |
1049 | { | 1049 | { |
1050 | int pci_dir; | 1050 | int pci_dir; |
1051 | 1051 | ||
@@ -1067,7 +1067,7 @@ static inline void carm_handle_resp(struct carm_host *host, | |||
1067 | u32 handle = le32_to_cpu(ret_handle_le); | 1067 | u32 handle = le32_to_cpu(ret_handle_le); |
1068 | unsigned int msg_idx; | 1068 | unsigned int msg_idx; |
1069 | struct carm_request *crq; | 1069 | struct carm_request *crq; |
1070 | int error = (status == RMSG_OK) ? 0 : -EIO; | 1070 | blk_status_t error = (status == RMSG_OK) ? 0 : BLK_STS_IOERR; |
1071 | u8 *mem; | 1071 | u8 *mem; |
1072 | 1072 | ||
1073 | VPRINTK("ENTER, handle == 0x%x\n", handle); | 1073 | VPRINTK("ENTER, handle == 0x%x\n", handle); |
@@ -1155,7 +1155,7 @@ static inline void carm_handle_resp(struct carm_host *host, | |||
1155 | err_out: | 1155 | err_out: |
1156 | printk(KERN_WARNING DRV_NAME "(%s): BUG: unhandled message type %d/%d\n", | 1156 | printk(KERN_WARNING DRV_NAME "(%s): BUG: unhandled message type %d/%d\n", |
1157 | pci_name(host->pdev), crq->msg_type, crq->msg_subtype); | 1157 | pci_name(host->pdev), crq->msg_type, crq->msg_subtype); |
1158 | carm_end_rq(host, crq, -EIO); | 1158 | carm_end_rq(host, crq, BLK_STS_IOERR); |
1159 | } | 1159 | } |
1160 | 1160 | ||
1161 | static inline void carm_handle_responses(struct carm_host *host) | 1161 | static inline void carm_handle_responses(struct carm_host *host) |