Skip to contentSkip to conversation

target/tcmu: Fix queue_cmd_ring() declaration

PATCH Applied Bart Van Assche 1 participant 1 message Nov 27, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/10 target/tcmu: Fix queue_cmd_ring() declaration

This patch does not change any functionality but avoids that sparse complains about the queue_cmd_ring() function and its callers.

Fixes 6fd0ce79724d ("tcmu: prep queue_cmd_ring to be used by unmap wq")
Cc Nicholas Bellinger <[email protected]>
Cc Mike Christie <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
---
 drivers/target/target_core_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_user.c +1 -1
index 9cd404acdb82..1e6d24943565 100644
@@ -958,7 +958,7 @@ static int add_to_cmdr_queue(struct tcmu_cmd *tcmu_cmd)
  *  0 success
  *  1 internally queued to wait for ring memory to free.
  */
-static sense_reason_t queue_cmd_ring(struct tcmu_cmd *tcmu_cmd, int *scsi_err)
+static int queue_cmd_ring(struct tcmu_cmd *tcmu_cmd, sense_reason_t *scsi_err)
 {
 	struct tcmu_dev *udev = tcmu_cmd->tcmu_dev;
 	struct se_cmd *se_cmd = tcmu_cmd->se_cmd;
Signature · 1 line
2.20.0.rc0.387.gc7a69e6b6c-goog