From eb4d0f3cb9062aa3aa31153cf3d7173ef762e213 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 7 Mar 2013 20:12:25 +0000 Subject: [PATCH] Fix compilation breakage on older kernels git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4789 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index 4a2e71184..8292bb4bf 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -80,6 +80,15 @@ typedef _Bool bool; #define __aligned __attribute__((aligned)) #endif +/* + * If kthread_create() is not #define, then kthread_create_on_node() + * doesn't exist. + */ +#ifndef kthread_create +#define kthread_create_on_node(threadfn, data, node, namefmt, arg...) \ + kthread_create(threadfn, data, namefmt, ##arg) +#endif + #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32) #ifndef O_DSYNC #define O_DSYNC O_SYNC