mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-18 22:14:16 +00:00
Fix compilation on linux kernels 2.6.28, 29 and 30.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -498,7 +498,11 @@ struct isposinfo {
|
||||
#define XS_SET_RESID scsi_set_resid
|
||||
#define XS_XFRLEN scsi_bufflen
|
||||
#endif
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
|
||||
#define XS_TIME(Cmnd) ((((Cmnd)->timeout_per_command) * HZ)*1000)
|
||||
#else
|
||||
#define XS_TIME(Cmnd) ((((Cmnd)->request->timeout) * HZ)*1000)
|
||||
#endif
|
||||
#define XS_STSP(Cmnd) (&(Cmnd)->SCp.Status)
|
||||
#define XS_SNSP(Cmnd) (Cmnd)->sense_buffer
|
||||
#define XS_SNSLEN(Cmnd) SCSI_SENSE_BUFFERSIZE
|
||||
|
||||
Reference in New Issue
Block a user