From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/ttm/tests: Fix build failure on PREEMPT_RT Date: Thu, 05 Mar 2026 13:40:45 +1000 Message-ID: In-Reply-To: <20260304085616.1216961-1-dev@lankhorst.se> References: <20260304085616.1216961-1-dev@lankhorst.se> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: drm/ttm/tests: Fix build failure on PREEMPT_RT Author: Maarten Lankhorst Patches: 3 Reviewed: 2026-03-05T13:40:45.267716 --- This is a single-patch fix for a compile error in TTM kunit tests when `CONFIG_PREEMPT_RT` is enabled. On PREEMPT_RT, `struct mutex` is replaced by `struct rt_mutex`, so directly accessing `bo->base.resv->lock.base` as a `mutex` fails to compile. The fix correctly switches to the proper `dma_resv_lock()`/`dma_resv_unlock()` API instead of reaching into ww_mutex internals. This is a clean, straightforward fix. **Verdict: Looks good.** --- Generated by Claude Code Patch Reviewer