Skip to content

Commit

Permalink
dmabuf: Mark up onstack timer for selftests
Browse files Browse the repository at this point in the history
The dma-fence selftest uses an on-stack timer that requires explicit
annotation for debugobjects.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111442
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190820122118.13698-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Aug 20, 2019
1 parent a8c16b7 commit 6ac3a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/dma-buf/st-dma-fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static int test_wait_timeout(void *arg)
struct wait_timer wt;
int err = -EINVAL;

timer_setup(&wt.timer, wait_timer, 0);
timer_setup_on_stack(&wt.timer, wait_timer, 0);

wt.f = mock_fence();
if (!wt.f)
Expand All @@ -399,6 +399,7 @@ static int test_wait_timeout(void *arg)
err = 0;
err_free:
del_timer_sync(&wt.timer);
destroy_timer_on_stack(&wt.timer);
dma_fence_signal(wt.f);
dma_fence_put(wt.f);
return err;
Expand Down

0 comments on commit 6ac3a0e

Please sign in to comment.