target/tcmu: Fix queue_cmd_ring() declaration
Subsystems (2)
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")
Reviewed-by David Disseldorp <[email protected]>
Cc Nicholas Bellinger <[email protected]>
Cc Mike Christie <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Signed-off-by Bart Van Assche <[email protected]>
--- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_user.c +1 -1
@@ -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