target: add missing sense_reason_t annotations
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Mar 2015 11:27:35 +0000 (12:27 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 26 Mar 2015 21:53:05 +0000 (14:53 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_spc.c

index 8800d54f743bb21284463b9b11840e8b1e689459..cd9393545b7a3a6e38af66c68b49abb7ead7744c 100644 (file)
@@ -536,7 +536,7 @@ fd_execute_write_same_unmap(struct se_cmd *cmd)
        struct file *file = fd_dev->fd_file;
        sector_t lba = cmd->t_task_lba;
        sector_t nolb = sbc_get_write_same_sectors(cmd);
-       int ret;
+       sense_reason_t ret;
 
        if (!nolb) {
                target_complete_cmd(cmd, SAM_STAT_GOOD);
index d4a4b0fb444a12907fac835f6a3db03600b722fa..2520cbfba524300647353f7c19f02dacf7ce1e89 100644 (file)
@@ -444,7 +444,7 @@ iblock_execute_write_same_unmap(struct se_cmd *cmd)
        struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd;
        sector_t lba = cmd->t_task_lba;
        sector_t nolb = sbc_get_write_same_sectors(cmd);
-       int ret;
+       sense_reason_t ret;
 
        ret = iblock_do_unmap(cmd, bdev, lba, nolb);
        if (ret)
index 460e9310947399661ce1fbd6ab4ed3e86b4a47e1..f310aac38bd8b03a751c2beac0748b257a3f9b2a 100644 (file)
@@ -1112,7 +1112,7 @@ static sense_reason_t spc_emulate_modeselect(struct se_cmd *cmd)
        unsigned char *buf;
        unsigned char tbuf[SE_MODE_PAGE_BUF];
        int length;
-       int ret = 0;
+       sense_reason_t ret = 0;
        int i;
 
        if (!cmd->data_length) {