From d1ad88a861814be13c069261fb8b8c18f6ded33d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 4 May 2017 02:56:27 +0000 Subject: [PATCH] scst: Fix build for kernels before v2.6.39 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7168 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 21542ef27..8cb0198cb 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -23,6 +23,7 @@ #include /* struct request_queue */ #include /* struct scatterlist */ #include /* kmalloc() */ +#include #include /* sync_page_range() */ #include /* struct scsi_cmnd */ #include @@ -647,6 +648,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)