summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/zalon.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-02-18 20:51:16 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 03:11:07 +0100
commit31160bd3e538f59eb1d8999bd7b020ee2638ad33 (patch)
tree7b180e5c4acc3ad5ff4d647208a00538597444e7 /drivers/scsi/zalon.c
parentscsi: wd33c93: Move the SCSI pointer to private command data (diff)
downloadlinux-31160bd3e538f59eb1d8999bd7b020ee2638ad33.tar.xz
linux-31160bd3e538f59eb1d8999bd7b020ee2638ad33.zip
scsi: zalon: Stop using the SCSI pointer
Set .cmd_size in the SCSI host template instead of using the SCSI pointer from struct scsi_cmnd. This patch prepares for removal of the SCSI pointer from struct scsi_cmnd. Link: https://lore.kernel.org/r/20220218195117.25689-49-bvanassche@acm.org Cc: Helge Deller <deller@gmx.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/zalon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/zalon.c b/drivers/scsi/zalon.c
index f1e5cf8a17d9..22d412cab91d 100644
--- a/drivers/scsi/zalon.c
+++ b/drivers/scsi/zalon.c
@@ -81,6 +81,7 @@ lasi_scsi_clock(void * hpa, int defaultclock)
static struct scsi_host_template zalon7xx_template = {
.module = THIS_MODULE,
.proc_name = "zalon7xx",
+ .cmd_size = sizeof(struct ncr_cmd_priv),
};
static int __init