From: Klaus-Dieter Wacker Date: Wed, 14 Oct 2009 22:54:57 +0000 (+0000) Subject: lcs: ODEBUG: object is on stack, but not annotated. X-Git-Tag: MMI-PSA29.97-13-9~25754^2~774 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d62e09e34eba15be382a7aed27b0fa67112e29e0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git lcs: ODEBUG: object is on stack, but not annotated. Timer_list structure in lcs_send_lancmd() is allocated on stack. Initialization with init_timer() leads to above ODEBUG message. Instead use init_timer_on_stack() which prevents above msg. Signed-off-by: Klaus-Dieter Wacker Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index a70de9b4bf29..f8dfd70a89d9 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c @@ -889,7 +889,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer, rc = lcs_ready_buffer(&card->write, buffer); if (rc) return rc; - init_timer(&timer); + init_timer_on_stack(&timer); timer.function = lcs_lancmd_timeout; timer.data = (unsigned long) reply; timer.expires = jiffies + HZ*card->lancmd_timeout;