From cfc340381e4a22d9df43da208fa101f689dfb1d4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 7 Mar 2018 01:05:31 +0000 Subject: [PATCH] scst/include/backport.h: Rework the DEFINE_TIMER() backport such that it also works with kernel 3.6 and before git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7387 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 0576e0226..15b4bd634 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -708,9 +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( \ - (void (*)(unsigned long))(_function), \ - (unsigned long)&(_name), 0, 0) + struct timer_list _name = TIMER_INITIALIZER( \ + (void (*)(unsigned long))(_function), 0, \ + (unsigned long)&(_name)) #endif /* */