[PATCH 4/7] Introduce scsi_out_cmd()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch does not change any functionality.

Cc: Douglas Gilbert <dgilbert@xxxxxxxxxxxx>
Cc: Hannes Reinecke <hare@xxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
 include/scsi/scsi_cmnd.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h
index 78183e851a0d..213404163993 100644
--- a/include/scsi/scsi_cmnd.h
+++ b/include/scsi/scsi_cmnd.h
@@ -230,9 +230,14 @@ static inline struct scsi_data_buffer *scsi_in(struct scsi_cmnd *cmd)
 	return &scsi_in_cmd(cmd)->sdb;
 }
 
+static inline struct scsi_cmnd *scsi_out_cmd(struct scsi_cmnd *cmd)
+{
+	return cmd;
+}
+
 static inline struct scsi_data_buffer *scsi_out(struct scsi_cmnd *cmd)
 {
-	return &cmd->sdb;
+	return &scsi_out_cmd(cmd)->sdb;
 }
 
 static inline int scsi_sg_copy_from_buffer(struct scsi_cmnd *cmd,
-- 
2.20.1.321.g9e740568ce-goog




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux