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