public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Ameya Palande <ameya.palande@nokia.com>
To: ext Nishanth Menon <nm@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
	Deepak Chitriki <deepak.chitriki@ti.com>,
	"Contreras Felipe (Nokia-D/Helsinki)"
	<felipe.contreras@nokia.com>,
	"Doyu Hiroshi (Nokia-D/Helsinki)" <hiroshi.doyu@nokia.com>,
	Omar Ramirez Luna <omar.ramirez@ti.com>
Subject: Re: [PATCH] DSPBRIDGE: replace init_timer with init_timer_on_stack
Date: Wed, 20 Jan 2010 11:55:03 +0200	[thread overview]
Message-ID: <1263981303.2066.2.camel@sanganak> (raw)
In-Reply-To: <1263948311-22140-1-git-send-email-nm@ti.com>

On Wed, 2010-01-20 at 01:45 +0100, ext Nishanth Menon wrote:
> With LOCK_DEP enabled and DEBUG_OBJECTS_TIMERS, DSPBridge
> SYNC_WaitOnMultipleEvents will fail with message
> "ODEBUG: object is on stack, but not annotated"
> since the timeout timer is on the stack, we should rightly use
> init_timer_on_stack.
> 
> Cc: Ameya Palande <ameya.palande@nokia.com>
> Cc: Deepak Chitriki <deepak.chitriki@ti.com>
> Cc: Felipe Contreras <felipe.contreras@nokia.com>
> Cc: Hiroshi Doyu <hiroshi.doyu@nokia.com>
> Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>  drivers/dsp/bridge/services/sync.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/dsp/bridge/services/sync.c b/drivers/dsp/bridge/services/sync.c
> index c2d79c7..d246656 100644
> --- a/drivers/dsp/bridge/services/sync.c
> +++ b/drivers/dsp/bridge/services/sync.c
> @@ -330,7 +330,7 @@ DSP_STATUS SYNC_WaitOnMultipleEvents(struct SYNC_OBJECT **hSyncEvents,
>  	if (Wp->state != wo_signalled && dwTimeout > 0) {
>  		struct timer_list timeout;
>  		if (dwTimeout != SYNC_INFINITE) {
> -			init_timer(&timeout);
> +			init_timer_on_stack(&timeout);
>  			timeout.function = timeout_callback;
>  			timeout.data = (unsigned long)Wp;
>  			timeout.expires = jiffies + dwTimeout * HZ / 1000;

Acked-by: Ameya Palande <ameya.palande@nokia.com>


  reply	other threads:[~2010-01-20  9:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20  0:45 [PATCH] DSPBRIDGE: replace init_timer with init_timer_on_stack Nishanth Menon
2010-01-20  9:55 ` Ameya Palande [this message]
2010-01-20 22:53   ` Ramirez Luna, Omar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1263981303.2066.2.camel@sanganak \
    --to=ameya.palande@nokia.com \
    --cc=deepak.chitriki@ti.com \
    --cc=felipe.contreras@nokia.com \
    --cc=hiroshi.doyu@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=omar.ramirez@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox