Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: sd: Fix typo in sd_first_printk()

Commit b2bff6ceb61a9 ("[SCSI] sd: Quiesce mode sense error messages")
added the macro sd_first_printk(). The macro takes "sdsk" as argument
but dereferences "sdkp". This hasn't caused any real issues since all
callers of sd_first_printk() have an sdkp. But fix the typo.

[mkp: Turned this into a real patch and tweaked commit description]

Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Dietmar Hahn and committed by
Martin K. Petersen
df46cac3 0de05405

+1 -1
+1 -1
drivers/scsi/sd.h
··· 132 132 133 133 #define sd_first_printk(prefix, sdsk, fmt, a...) \ 134 134 do { \ 135 - if ((sdkp)->first_scan) \ 135 + if ((sdsk)->first_scan) \ 136 136 sd_printk(prefix, sdsk, fmt, ##a); \ 137 137 } while (0) 138 138