Commit 6ac3a0eb authored by Chris Wilson's avatar Chris Wilson

dmabuf: Mark up onstack timer for selftests

The dma-fence selftest uses an on-stack timer that requires explicit
annotation for debugobjects.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111442Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190820122118.13698-1-chris@chris-wilson.co.uk
parent a8c16b75
...@@ -373,7 +373,7 @@ static int test_wait_timeout(void *arg) ...@@ -373,7 +373,7 @@ static int test_wait_timeout(void *arg)
struct wait_timer wt; struct wait_timer wt;
int err = -EINVAL; int err = -EINVAL;
timer_setup(&wt.timer, wait_timer, 0); timer_setup_on_stack(&wt.timer, wait_timer, 0);
wt.f = mock_fence(); wt.f = mock_fence();
if (!wt.f) if (!wt.f)
...@@ -399,6 +399,7 @@ static int test_wait_timeout(void *arg) ...@@ -399,6 +399,7 @@ static int test_wait_timeout(void *arg)
err = 0; err = 0;
err_free: err_free:
del_timer_sync(&wt.timer); del_timer_sync(&wt.timer);
destroy_timer_on_stack(&wt.timer);
dma_fence_signal(wt.f); dma_fence_signal(wt.f);
dma_fence_put(wt.f); dma_fence_put(wt.f);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment