scst_local: RHEL 5 build fix

Add a definition of scsi_bidi_cmnd() for older kernel versions.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6333 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-06-16 20:14:10 +00:00
parent 5516e63e25
commit 1d58f5fd14

View File

@@ -139,6 +139,17 @@ char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap);
typedef unsigned long uintptr_t;
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)
/*
* See also patch "[SCSI] bidirectional command support"
* (commit ID 6f9a35e2dafa).
*/
static inline int scsi_bidi_cmnd(struct scsi_cmnd *cmd)
{
return false;
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)
#define cpumask_bits(maskp) ((maskp)->bits)
#ifdef CONFIG_CPUMASK_OFFSTACK