From: Chris Wilson Date: Tue, 20 Aug 2019 12:21:18 +0000 (+0100) Subject: dmabuf: Mark up onstack timer for selftests X-Git-Tag: v5.4-rc1~106^2~8^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ac3a0ebfcc2f0c75ca0ca6974389ce421aa5cbd;p=thirdparty%2Fkernel%2Flinux.git 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=111442 Signed-off-by: Chris Wilson Cc: Daniel Vetter Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20190820122118.13698-1-chris@chris-wilson.co.uk --- diff --git a/drivers/dma-buf/st-dma-fence.c b/drivers/dma-buf/st-dma-fence.c index 6fbae6bf65766..e593064341c8c 100644 --- a/drivers/dma-buf/st-dma-fence.c +++ b/drivers/dma-buf/st-dma-fence.c @@ -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) @@ -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;