[S390] tape: use init_timer_on_stack() rather than init_timer()
authorFrank Munzert <munzert@de.ibm.com>
Fri, 11 Sep 2009 08:28:39 +0000 (10:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 11 Sep 2009 08:29:46 +0000 (10:29 +0200)
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 <munzert@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tape_std.c

index 1a9420ba518d66cb767bba6d1b9d0e8cd4d3dc7b..750354ad16e5506cb6628304462036cc96482df8 100644 (file)
@@ -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;