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 DA1BF423A9B; Tue, 31 Mar 2026 16:58:53 +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=1774976333; cv=none; b=QbWo3mhGficG2x0CYPo7dT8RSCgc4BuatIbvKPoXzCozbAPPjnmh0STzM810xvIRAUbSZdox1jECAEtxSIIjVuPevZoal9y4rCbxC7ESkTO+U41/bvM2UsONkcp+LSnthDj6zKq2ZwUw8DdNwhpCuCJXMl6ZdSbxrazGOJj8zkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774976333; c=relaxed/simple; bh=Ppr7srrS/WwRbpx776ZMdHOC2gaHXaS4ROEeW4q8LYI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mscYFq42uOI3fJ37EJnTq4a+gKDA+HGwTW3L3Nd82qM0NRfD5bHj0BTyuNdAonrIeNvPR6giNamWYPHDdkjHL3p5FJ/jQwyhLnPtuW5SqY5wy2fYLAP8CQUgULEeUPE7rSFJNhVPgjpwndsQEuzU2pW922AMbM8KBIiFhGAaoZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JkqiwXm/; 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="JkqiwXm/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 700A9C19423; Tue, 31 Mar 2026 16:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774976333; bh=Ppr7srrS/WwRbpx776ZMdHOC2gaHXaS4ROEeW4q8LYI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JkqiwXm/rzC2JrlpeT/LDDcpsUdB3PzovMmcSkxHWYUHRWRfmSAZixmzzKSmqqrRi 9sdPtETfaVYKPVqthSk8y6CHkD03VLDnctdDk3Ep30QQ3Voxpwsl6KAAc3fn4iHwR2 FW93QdvqZ70yEieTmP34Kznw7Vw8eprBJSrqJy6c= 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.18 051/309] drm/ttm/tests: Fix build failure on PREEMPT_RT Date: Tue, 31 Mar 2026 18:19:14 +0200 Message-ID: <20260331161755.364098357@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161753.468533260@linuxfoundation.org> References: <20260331161753.468533260@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.18-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 6c77550c51af1..40a55f81bf47d 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