diff options
author | Christoph Hellwig <hch@lst.de> | 2015-03-26 07:27:35 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-03-26 17:53:05 -0400 |
commit | 3abff1e5b0ab19900364cf1faddb92d64f9ee2cb (patch) | |
tree | cc682ed9bca484370ed61917b27ff7c7cb70d610 /drivers/target | |
parent | 077aa3b2db67dd43781e9ca1635e542696c39269 (diff) |
target: add missing sense_reason_t annotations
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_file.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_iblock.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_spc.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index 8800d54f743b..cd9393545b7a 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c | |||
@@ -536,7 +536,7 @@ fd_execute_write_same_unmap(struct se_cmd *cmd) | |||
536 | struct file *file = fd_dev->fd_file; | 536 | struct file *file = fd_dev->fd_file; |
537 | sector_t lba = cmd->t_task_lba; | 537 | sector_t lba = cmd->t_task_lba; |
538 | sector_t nolb = sbc_get_write_same_sectors(cmd); | 538 | sector_t nolb = sbc_get_write_same_sectors(cmd); |
539 | int ret; | 539 | sense_reason_t ret; |
540 | 540 | ||
541 | if (!nolb) { | 541 | if (!nolb) { |
542 | target_complete_cmd(cmd, SAM_STAT_GOOD); | 542 | target_complete_cmd(cmd, SAM_STAT_GOOD); |
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index d4a4b0fb444a..2520cbfba524 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -444,7 +444,7 @@ iblock_execute_write_same_unmap(struct se_cmd *cmd) | |||
444 | struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; | 444 | struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; |
445 | sector_t lba = cmd->t_task_lba; | 445 | sector_t lba = cmd->t_task_lba; |
446 | sector_t nolb = sbc_get_write_same_sectors(cmd); | 446 | sector_t nolb = sbc_get_write_same_sectors(cmd); |
447 | int ret; | 447 | sense_reason_t ret; |
448 | 448 | ||
449 | ret = iblock_do_unmap(cmd, bdev, lba, nolb); | 449 | ret = iblock_do_unmap(cmd, bdev, lba, nolb); |
450 | if (ret) | 450 | if (ret) |
diff --git a/drivers/target/target_core_spc.c b/drivers/target/target_core_spc.c index 460e93109473..f310aac38bd8 100644 --- a/drivers/target/target_core_spc.c +++ b/drivers/target/target_core_spc.c | |||
@@ -1112,7 +1112,7 @@ static sense_reason_t spc_emulate_modeselect(struct se_cmd *cmd) | |||
1112 | unsigned char *buf; | 1112 | unsigned char *buf; |
1113 | unsigned char tbuf[SE_MODE_PAGE_BUF]; | 1113 | unsigned char tbuf[SE_MODE_PAGE_BUF]; |
1114 | int length; | 1114 | int length; |
1115 | int ret = 0; | 1115 | sense_reason_t ret = 0; |
1116 | int i; | 1116 | int i; |
1117 | 1117 | ||
1118 | if (!cmd->data_length) { | 1118 | if (!cmd->data_length) { |