From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brown Subject: Re: [PATCH] yaffs: Use deferable timer for background operations Date: Fri, 20 Jan 2012 08:52:41 -0800 Message-ID: <20120120165241.GA6959@codeaurora.org> References: <1327028565-4266-1-git-send-email-sthumma@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:61744 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164Ab2ATQwn (ORCPT ); Fri, 20 Jan 2012 11:52:43 -0500 Content-Disposition: inline In-Reply-To: <1327028565-4266-1-git-send-email-sthumma@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Sujit Reddy Thumma Cc: yaffs@lists.aleph1.co.uk, linux-arm-msm@vger.kernel.org On Fri, Jan 20, 2012 at 08:32:45AM +0530, Sujit Reddy Thumma wrote: > diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c > index b8e5124..2132ae3 100644 > --- a/yaffs_vfs_multi.c > +++ b/yaffs_vfs_multi.c > @@ -129,9 +129,9 @@ > #endif > > #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)) > -#define Y_INIT_TIMER(a) init_timer(a) > +#define Y_INIT_TIMER(a, b, c) setup_timer(a, b, c) > #else > -#define Y_INIT_TIMER(a) init_timer_on_stack(a) > +#define Y_INIT_TIMER(a, b, c) setup_deferrable_timer_on_stack(a, b, c) > #endif setup_timer() was added in 2.6.15, so I'm not sure that this will quite work as is. David -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.