scst: Build fix for kernel versions before 2.6.37

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5276 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-02-08 08:24:28 +00:00
parent 634c1e69aa
commit 72968c9c15
+10
View File
@@ -186,6 +186,16 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37)
/*
* See also patch "sched: Fix softirq time accounting" (commit ID
* 75e1056f5c57050415b64cb761a3acc35d91f013).
*/
#ifndef in_serving_softirq
#define in_serving_softirq() in_softirq()
#endif
#endif
#ifndef __list_for_each
/* ToDo: cleanup when both are the same for all relevant kernels */
#define __list_for_each list_for_each