scst: Allow compiling iSER/SRP against OFED/MLNX_OFED (merge r6236 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-06-11 17:12:13 +00:00
parent 25245f287e
commit 511f2fc10f

View File

@@ -246,7 +246,8 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
#endif
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) && \
!defined(CONFIG_COMPAT_KERNEL_3_12)
/*
* See also patch "new helper: file_inode(file)" (commit ID
* 496ad9aa8ef448058e36ca7a787c61f2e63f0f54).