i915_sw_fence_fini(fence);
}
-static void timed_fence_wake(struct timer_list *t)
+static void timed_fence_wake(unsigned long data)
{
- struct timed_fence *tf = from_timer(tf, t, timer);
+ struct timed_fence *tf = (struct timed_fence *)data;
i915_sw_fence_commit(&tf->fence);
}
{
onstack_fence_init(&tf->fence);
- timer_setup_on_stack(&tf->timer, timed_fence_wake, 0);
+ setup_timer_on_stack(&tf->timer, timed_fence_wake, (unsigned long)tf);
if (time_after(expires, jiffies))
mod_timer(&tf->timer, expires);