From: Frank Munzert Date: Fri, 11 Sep 2009 08:28:39 +0000 (+0200) Subject: [S390] tape: use init_timer_on_stack() rather than init_timer() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6292b9ef5a4e85d6b782412a85725dd38df24b85;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [S390] tape: use init_timer_on_stack() rather than init_timer() With CONFIG_DEBUG_OBJECTS_TIMERS=y "chccwdev --online" for a tape device will fail with message "ODEBUG: object is on stack, but not annotated". We now use init_timer_on_stack. Signed-off-by: Frank Munzert Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 1a9420ba518..750354ad16e 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -68,7 +68,7 @@ tape_std_assign(struct tape_device *device) * to another host (actually this shouldn't happen but it does). * So we set up a timeout for this call. */ - init_timer(&timeout); + init_timer_on_stack(&timeout); timeout.function = tape_std_assign_timeout; timeout.data = (unsigned long) request; timeout.expires = jiffies + 2 * HZ;