mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4.19] scsi: sd: Fix 'sdkp' in sd_first_printk
@ 2022-10-13  2:34 Li kunyu
  2022-10-13  3:54 ` Damien Le Moal
  0 siblings, 1 reply; 10+ messages in thread
From: Li kunyu @ 2022-10-13  2:34 UTC (permalink / raw)
  To: jejb, martin.petersen; +Cc: linux-scsi, linux-kernel, Li kunyu

In the sd_first_printk macro, replace the sdkp parameter with the
defined sdsk parameter to resolve the compilation error.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
 drivers/scsi/sd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h
index a7d4f50b67d4..e5bdf0a10071 100644
--- a/drivers/scsi/sd.h
+++ b/drivers/scsi/sd.h
@@ -133,7 +133,7 @@ static inline struct scsi_disk *scsi_disk(struct gendisk *disk)
 
 #define sd_first_printk(prefix, sdsk, fmt, a...)			\
 	do {								\
-		if ((sdkp)->first_scan)					\
+		if ((sdsk)->first_scan)					\
 			sd_printk(prefix, sdsk, fmt, ##a);		\
 	} while (0)
 
-- 
2.18.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-10-13  8:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13  2:34 [PATCH 4.19] scsi: sd: Fix 'sdkp' in sd_first_printk Li kunyu
2022-10-13  3:54 ` Damien Le Moal
2022-10-13  4:49   ` Li kunyu
2022-10-13  6:26     ` Jason Yan
2022-10-13  6:39       ` Damien Le Moal
2022-10-13  7:02         ` Jason Yan
2022-10-13  7:14           ` Damien Le Moal
2022-10-13  7:39       ` Li kunyu
2022-10-13  7:52         ` Damien Le Moal
2022-10-13  8:37           ` Li kunyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®