From 82bd097ce6bfafee4f523c31b7ecdd482feda184 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 7 Apr 2026 09:27:59 +0000 Subject: [PATCH] drm/ttm/tests: Fix build failure on PREEMPT_RT From Maarten Lankhorst be0c2255d717c8c548cba3b78c6d3c33ecd1feb8 in linux-6.18.y/6.18.21 a58d487fb1a52579d3c37544ea371da78ed70c45 in mainline linux --- sys/dev/pci/drm/ttm/tests/ttm_bo_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/ttm/tests/ttm_bo_test.c b/sys/dev/pci/drm/ttm/tests/ttm_bo_test.c index 6c77550c51a..40a55f81bf4 100644 --- a/sys/dev/pci/drm/ttm/tests/ttm_bo_test.c +++ b/sys/dev/pci/drm/ttm/tests/ttm_bo_test.c @@ -222,13 +222,13 @@ static void ttm_bo_reserve_interrupted(struct kunit *test) KUNIT_FAIL(test, "Couldn't create ttm bo reserve task\n"); /* Take a lock so the threaded reserve has to wait */ - mutex_lock(&bo->base.resv->lock.base); + dma_resv_lock(bo->base.resv, NULL); wake_up_process(task); msleep(20); err = kthread_stop(task); - mutex_unlock(&bo->base.resv->lock.base); + dma_resv_unlock(bo->base.resv); KUNIT_ASSERT_EQ(test, err, -ERESTARTSYS); }