提交 6292b9ef 编写于 作者: F Frank Munzert 提交者: Martin Schwidefsky

[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: NFrank Munzert <munzert@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 c6304933
...@@ -68,7 +68,7 @@ tape_std_assign(struct tape_device *device) ...@@ -68,7 +68,7 @@ tape_std_assign(struct tape_device *device)
* to another host (actually this shouldn't happen but it does). * to another host (actually this shouldn't happen but it does).
* So we set up a timeout for this call. * So we set up a timeout for this call.
*/ */
init_timer(&timeout); init_timer_on_stack(&timeout);
timeout.function = tape_std_assign_timeout; timeout.function = tape_std_assign_timeout;
timeout.data = (unsigned long) request; timeout.data = (unsigned long) request;
timeout.expires = jiffies + 2 * HZ; timeout.expires = jiffies + 2 * HZ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册