mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
scst: Backport scsi_cmd_priv()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1586,6 +1586,14 @@ static inline int scsi_bidi_cmnd(struct scsi_cmnd *cmd)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)
|
||||
/* See also commit b54197c43db8 ("virtio_scsi: use cmd_size") # v3.16. */
|
||||
static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd)
|
||||
{
|
||||
return cmd + 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* <scsi/scsi_request.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
|
||||
|
||||
Reference in New Issue
Block a user