mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
scst: Allow compiling iSER/SRP against OFED/MLNX_OFED
Both OFED/MLNX_OFED compat and scst define file_inode. This causes a compilation error. Fix this by detecting that backports are in effect. Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-1
@@ -278,7 +278,8 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count)
|
||||
}
|
||||
#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).
|
||||
|
||||
Reference in New Issue
Block a user