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/loongson: use drm_gem_ttm_dumb_map_offset() Date: Mon, 09 Mar 2026 07:52:56 +1000 Message-ID: In-Reply-To: <20260308-master-v1-1-af32d71c8a1d@gmail.com> References: <20260308-master-v1-1-af32d71c8a1d@gmail.com> 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/loongson: use drm_gem_ttm_dumb_map_offset() Author: Amin GATTOUT Patches: 1 Reviewed: 2026-03-09T07:52:56.083383 --- This is a clean, straightforward cleanup patch. It replaces the open-coded `lsdc_dumb_map_offset()` in the loongson DRM driver with the existing generic `drm_gem_ttm_dumb_map_offset()` helper from `drm_gem_ttm_helper.c`. The two implementations are **byte-for-byte identical** in logic (lookup GEM object by handle, get vma_node offset, put object, return). The patch correctly removes the now-unnecessary function definition and declaration, and adds the required header include. **Verdict: Looks good.** No functional issues. --- Generated by Claude Code Patch Reviewer