From 428ff5aa8d7033446d242f814ee4e7344959917a Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Thu, 17 Jun 2010 17:51:33 +1200 Subject: [PATCH] yaffs: Change timer init call to init_timer_on_stack This call is more debug friendly and does not trigger certain kernel warmings. Signed-off-by: Charles Manning --- yaffs_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaffs_fs.c b/yaffs_fs.c index 36cbd4e..77b51cf 100644 --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -2227,7 +2227,7 @@ static int yaffs_BackgroundThread(void *data) if(time_before(expires,now)) expires = now + HZ; - init_timer(&timer); + init_timer_on_stack(&timer); timer.expires = expires+1; timer.data = (unsigned long) current; timer.function = yaffs_background_waker; -- 2.30.2