Skip to contentSkip to conversation

scsi: acornscsi: Remove scsi_cmd_to_tag() reference

PATCH Applied John Garry 3 participants 3 messages Sep 30, 2021 – Oct 5, 2021

Subsystems (2)
lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 scsi: acornscsi: Remove scsi_cmd_to_tag() reference

Commit 756fb6a895afb ("scsi: acornscsi: Remove tagged queuing vestiges") mistakenly introduced a reference to function scsi_cmd_to_tag(). This function does not exist as it was removed from an earlier series version when I upstreamed the named commit - originally authored By Hannes - but this reference still remained.

Fix by replacing the reference to scsi_cmd_to_tag() with scsi_cmd_to_rq(scsi_scmd)->tag, which scsi_cmd_to_tag() was a wrapper for.

Fixes 756fb6a895afb ("scsi: acornscsi: Remove tagged queuing vestiges")
drivers/scsi/arm/acornscsi.c +1 -1
index b4cb5fb19998..0cc62c1b0825 100644
@@ -1776,7 +1776,7 @@ int acornscsi_reconnect_finish(AS_Host *host)
 	host->scsi.disconnectable = 0;
 	if (host->SCpnt->device->id  == host->scsi.reconnected.target &&
 	    host->SCpnt->device->lun == host->scsi.reconnected.lun &&
-	    scsi_cmd_to_tag(host->SCpnt) == host->scsi.reconnected.tag) {
+	    scsi_cmd_to_rq(host->SCpnt)->tag == host->scsi.reconnected.tag) {
 #if (DEBUG & (DEBUG_QUEUES|DEBUG_DISCON))
 	    DBG(host->SCpnt, printk("scsi%d.%c: reconnected",
 		    host->host->host_no, acornscsi_target(host)));
Signature · 1 line
2.26.2
Tested-by on v1 1/1
#1 lore raw
Quoted 7 lines · John Garry

Commit 756fb6a895afb ("scsi: acornscsi: Remove tagged queuing vestiges") mistakenly introduced a reference to function scsi_cmd_to_tag(). This function does not exist as it was removed from an earlier series version when I upstreamed the named commit - originally authored By Hannes - but this reference still remained.

Quoted 6 lines

Fix by replacing the reference to scsi_cmd_to_tag() with scsi_cmd_to_rq(scsi_scmd)->tag, which scsi_cmd_to_tag() was a wrapper for.

Fixes 756fb6a895afb ("scsi: acornscsi: Remove tagged queuing vestiges")

Thanks, that fixes the build regression and looks sensible.

#2 lore raw
In reply to John Garry
Quoted 10 lines · John Garry

Commit 756fb6a895afb ("scsi: acornscsi: Remove tagged queuing vestiges") mistakenly introduced a reference to function scsi_cmd_to_tag(). This function does not exist as it was removed from an earlier series version when I upstreamed the named commit - originally authored By Hannes - but this reference still remained.

Fix by replacing the reference to scsi_cmd_to_tag() with scsi_cmd_to_rq(scsi_scmd)->tag, which scsi_cmd_to_tag() was a wrapper for.

[...]

Applied to 5.15/scsi-fixes, thanks!

[1/1] scsi: acornscsi: Remove scsi_cmd_to_tag() reference

      https://git.kernel.org/mkp/scsi/c/c5336400ca8b
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering