From edebe24bab45c7f3258153981498aeb4f23ab219 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 2 May 2017 14:23:00 +0000 Subject: [PATCH] scst: Fix build for kernels before v2.6.39 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7163 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index e9917db77..21542ef27 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -356,6 +356,14 @@ static inline int __must_check kref_get_unless_zero(struct kref *kref) } #endif +/* */ + +/* See also commit 207205a2ba26 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +#define kthread_create_on_node(threadfn, data, node, namefmt, arg...)\ + kthread_create((threadfn), (data), ##arg) +#endif + /* */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) && \