scst_lib: Port task management debug code to kernel v4.15

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7385 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-03-04 19:38:02 +00:00
parent 0c5875eac5
commit a1b4c9e2fc
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -708,7 +708,9 @@ struct t10_pi_tuple {
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
#undef DEFINE_TIMER
#define DEFINE_TIMER(_name, _function) \
struct timer_list _name = __TIMER_INITIALIZER(_function, 0, 0, 0)
struct timer_list _name = __TIMER_INITIALIZER( \
(void (*)(unsigned long))(_function), \
(unsigned long)&(_name), 0, 0)
#endif
/* <linux/types.h> */