From 3a45221c3450a914fb62319642869d7adc091f91 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 9 Nov 2018 05:12:52 +0000 Subject: [PATCH] scst/include/backport.h: Fix RHEL 6.9 build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7801 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index f4e9e6846..b0e091486 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -508,7 +508,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