This patch does not change any functionality.

Cc: Douglas Gilbert <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
---
 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

Reply via email to