diff mbox series

[1/2] scsi: ppa: Fix compilation with PPA_DEBUG=1

Message ID 20230807155856.362864-1-alexhenrie24@gmail.com (mailing list archive)
State Accepted
Headers show
Series [1/2] scsi: ppa: Fix compilation with PPA_DEBUG=1 | expand

Commit Message

Alex Henrie Aug. 7, 2023, 3:52 p.m. UTC
Fix a regression introduced in February 2003 in Linux 2.5.61 by a patch
from Alan Cox titled "fix ppa for new scsi".[1]

Link: https://lore.kernel.org/lkml/E18jn1B-0005gQ-00@the-village.bc.nu/
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
 drivers/scsi/ppa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Aug. 21, 2023, 8:33 p.m. UTC | #1
Alex,

> Fix a regression introduced in February 2003 in Linux 2.5.61 by a patch
> from Alan Cox titled "fix ppa for new scsi".[1]

Applied patches 1+2 to 6.6/scsi-staging, thanks!
Martin K. Petersen Aug. 25, 2023, 1:12 a.m. UTC | #2
On Mon, 07 Aug 2023 09:52:57 -0600, Alex Henrie wrote:

> Fix a regression introduced in February 2003 in Linux 2.5.61 by a patch
> from Alan Cox titled "fix ppa for new scsi".[1]
> 
> 

Applied to 6.6/scsi-queue, thanks!

[1/2] scsi: ppa: Fix compilation with PPA_DEBUG=1
      https://git.kernel.org/mkp/scsi/c/b68442ebda9c
[2/2] scsi: ppa: Add a module parameter for the transfer mode
      https://git.kernel.org/mkp/scsi/c/68a4f84a17c1
diff mbox series

Patch

diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c
index 909c49541984..d1f6aa256eba 100644
--- a/drivers/scsi/ppa.c
+++ b/drivers/scsi/ppa.c
@@ -637,7 +637,7 @@  static void ppa_interrupt(struct work_struct *work)
 	case DID_OK:
 		break;
 	case DID_NO_CONNECT:
-		printk(KERN_DEBUG "ppa: no device at SCSI ID %i\n", cmd->device->target);
+		printk(KERN_DEBUG "ppa: no device at SCSI ID %i\n", scmd_id(cmd));
 		break;
 	case DID_BUS_BUSY:
 		printk(KERN_DEBUG "ppa: BUS BUSY - EPP timeout detected\n");