File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ static DEFINE_SPINLOCK(cmm_lock);
5656
5757static struct task_struct * cmm_thread_ptr ;
5858static DECLARE_WAIT_QUEUE_HEAD (cmm_thread_wait );
59- static DEFINE_TIMER (cmm_timer , NULL) ;
6059
61- static void cmm_timer_fn (unsigned long );
60+ static void cmm_timer_fn (struct timer_list * );
6261static void cmm_set_timer (void );
62+ static DEFINE_TIMER (cmm_timer , cmm_timer_fn ) ;
6363
6464static long cmm_alloc_pages (long nr , long * counter ,
6565 struct cmm_page_array * * list )
@@ -194,13 +194,11 @@ static void cmm_set_timer(void)
194194 if (mod_timer (& cmm_timer , jiffies + cmm_timeout_seconds * HZ ))
195195 return ;
196196 }
197- cmm_timer .function = cmm_timer_fn ;
198- cmm_timer .data = 0 ;
199197 cmm_timer .expires = jiffies + cmm_timeout_seconds * HZ ;
200198 add_timer (& cmm_timer );
201199}
202200
203- static void cmm_timer_fn (unsigned long ignored )
201+ static void cmm_timer_fn (struct timer_list * unused )
204202{
205203 long nr ;
206204
You can’t perform that action at this time.
0 commit comments