From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D88E423A82; Tue, 31 Mar 2026 16:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975694; cv=none; b=VyJpPQZFtx2RBEfF0+FIrSRSPWucPpGemp+809wd4umRI5HvfanTJbHOycKiX8doRzAuGC1Idsc/sYFGFv+rA0GyK938EBl77Vbec4OikDYARyG75FkFhRe8n7XaepYFIu255T9Ozvv3xe16tq8Nqstj26y0ZcUxzBQr8WodVJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975694; c=relaxed/simple; bh=LNFlGG+ss0A63lmtrMUwXvRfeD+fCoYd6f7hYcRTgoI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W7CbH5xDul3yi8YyFvg53PWaGHhPkxoOzRbyowNxpBTovTHgVv3jqd5LO54AeMUCwmkap47q1j7AwxNFfRnpG9QqNstR/1rp9QB5wiWOOwnBrw0nVm8F9CBzPefDO864I1BJV9Hn5u985XAa+0eKWVvuSAhgIyG6iQhP3mz5vk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xu5/NH6i; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xu5/NH6i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5C0CC19424; Tue, 31 Mar 2026 16:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774975694; bh=LNFlGG+ss0A63lmtrMUwXvRfeD+fCoYd6f7hYcRTgoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xu5/NH6iZFRsP65C1SJgNw/P+SJ9H26I5k78cEM2DSCwWVyzfCTRjKoKB6OMnraux MUp4aBE+0gdJbDOqZLH/xpGu47C6R801FYGoZzTWmliU3rRFwDsBuPA38AnRyJAdgc F8pIrCeJeN52EI+mVx1l9EpUZ0EZhmhJDWJKIAA8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , =?UTF-8?q?Jouni=20H=C3=B6gander?= , Maarten Lankhorst , Sasha Levin Subject: [PATCH 6.12 033/244] drm/ttm/tests: Fix build failure on PREEMPT_RT Date: Tue, 31 Mar 2026 18:19:43 +0200 Message-ID: <20260331161742.924858436@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161741.651718120@linuxfoundation.org> References: <20260331161741.651718120@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maarten Lankhorst [ Upstream commit a58d487fb1a52579d3c37544ea371da78ed70c45 ] Fix a compile error in the kunit tests when CONFIG_PREEMPT_RT is enabled, and the normal mutex is converted into a rtmutex. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202602261547.3bM6yVAS-lkp@intel.com/ Reviewed-by: Jouni Högander Link: https://patch.msgid.link/20260304085616.1216961-1-dev@lankhorst.se Signed-off-by: Maarten Lankhorst Signed-off-by: Sasha Levin --- drivers/gpu/drm/ttm/tests/ttm_bo_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c index f0a7eb62116ca..b5b385a1da481 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c +++ b/drivers/gpu/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); } -- 2.51.0