From 7d452207c49e9794bec220b4bf5f36dbebdcb434 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 1 Mar 2017 22:54:42 -0800 Subject: [PATCH] scst: Unbreak the kernel v2.6.38 build --- scst/include/backport.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 9f5d64499..7e2e31b84 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -639,6 +639,15 @@ struct t10_pi_tuple { }; #endif +/* */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +#ifndef kthread_create +#define kthread_create_on_node(threadfn, data, node, namefmt, arg...) \ + kthread_create((threadfn), (data), (namefmt), ##arg) +#endif +#endif + /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)