mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
Build fixes for RHEL 6.6 kernel 2.6.32-504
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-1
@@ -181,7 +181,9 @@ static u32 ft_sess_hash(u32 port_id)
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 41)) && \
|
||||
! (LINUX_VERSION_CODE >> 8 == KERNEL_VERSION(3, 2, 0) >> 8 && \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 44)) && \
|
||||
!defined(CONFIG_SUSE_KERNEL)
|
||||
!defined(CONFIG_SUSE_KERNEL) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6 || \
|
||||
(RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 < 6))
|
||||
/*
|
||||
* See also commit 4b20db3 (kref: Implement kref_get_unless_zero v3 -- v3.8).
|
||||
* See also commit e3a5505 in branch stable/linux-3.4.y (v3.4.41).
|
||||
|
||||
@@ -313,7 +313,9 @@ out:
|
||||
|
||||
#endif /* defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING) */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6 || \
|
||||
(RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 < 6))
|
||||
/**
|
||||
** Backported sysfs functions.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user