diff --git a/scst/include/backport.h b/scst/include/backport.h index 2f65a9061..8fcd87edc 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -386,7 +386,9 @@ static inline int __must_check kref_get_unless_zero(struct kref *kref) /* */ /* See also commit 207205a2ba26 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \ + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6 || \ + RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 < 9) #define kthread_create_on_node(threadfn, data, node, namefmt, arg...)\ kthread_create((threadfn), (data), (namefmt), ##arg) #endif