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
This commit is contained in:
Bart Van Assche
2017-05-04 02:56:27 +00:00
parent 386cd25f98
commit d1ad88a861
+10
View File
@@ -23,6 +23,7 @@
#include <linux/blkdev.h> /* struct request_queue */
#include <linux/scatterlist.h> /* struct scatterlist */
#include <linux/slab.h> /* kmalloc() */
#include <linux/version.h>
#include <linux/writeback.h> /* sync_page_range() */
#include <scsi/scsi_cmnd.h> /* struct scsi_cmnd */
#include <rdma/ib_verbs.h>
@@ -647,6 +648,15 @@ struct t10_pi_tuple {
};
#endif
/* <linux/thread.h> */
#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
/* <linux/types.h> */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)