summaryrefslogtreecommitdiff
path: root/drivers/scsi/imm.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-02-18 22:50:52 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 05:11:04 +0300
commit6b66f09c46a8e7f2cfcfcdbc9e45103263b12683 (patch)
tree8f79ba4e147c084885231f593ab37dfc50d4d590 /drivers/scsi/imm.h
parent5c113eb3bc58eb41416a882da99e046ea621176e (diff)
downloadlinux-6b66f09c46a8e7f2cfcfcdbc9e45103263b12683.tar.xz
scsi: imm: Move the SCSI pointer to private command data
Set .cmd_size in the SCSI host template instead of using the SCSI pointer. This patch prepares for removal of the SCSI pointer from struct scsi_cmnd. Link: https://lore.kernel.org/r/20220218195117.25689-25-bvanassche@acm.org Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> 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 'drivers/scsi/imm.h')
-rw-r--r--drivers/scsi/imm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/imm.h b/drivers/scsi/imm.h
index 7f2bb35b1b87..411cf94af5b0 100644
--- a/drivers/scsi/imm.h
+++ b/drivers/scsi/imm.h
@@ -139,6 +139,11 @@ static char *IMM_MODE_STRING[] =
#define w_ctr(x,y) outb(y, (x)+2)
#endif
+static inline struct scsi_pointer *imm_scsi_pointer(struct scsi_cmnd *cmd)
+{
+ return scsi_cmd_priv(cmd);
+}
+
static int imm_engine(imm_struct *, struct scsi_cmnd *);
#endif /* _IMM_H */