From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: Rename drm_atomic_state
Date: Wed, 01 Apr 2026 07:41:18 +1000 [thread overview]
Message-ID: <review-overall-20260331-drm-drm-atomic-update-v2-0-7e8fe6ddcd32@kernel.org> (raw)
In-Reply-To: <20260331-drm-drm-atomic-update-v2-0-7e8fe6ddcd32@kernel.org>
Overall Series Review
Subject: drm: Rename drm_atomic_state
Author: Maxime Ripard <mripard@kernel.org>
Patches: 2
Reviewed: 2026-04-01T07:41:18.012570
---
This is a v2 of a long-discussed mechanical rename: `drm_atomic_state` → `drm_atomic_commit`, addressing a genuine source of confusion documented in the DRM TODO. The rename clarifies that this struct represents a partial atomic commit (a state update for some objects), not the entire device state — while per-object state structs (`drm_crtc_state`, `drm_plane_state`, etc.) remain correctly named as full object state.
The series is 2 patches: a massive tree-wide rename (354 files, ~3400 line changes) and a trivial todo cleanup. Only patch 2/2 is present in the mbox — patch 1/2 (the actual rename) was likely too large for the mailing list filter. This limits what can be reviewed in detail.
**Key observations:**
1. **Naming choice is reasonable.** v1 proposed `drm_atomic_update`; v2 changed to `drm_atomic_commit`, which aligns well with existing terminology (`drm_atomic_helper_commit`, `drm_atomic_nonblocking_commit`, etc.) and with what the struct actually represents — a commit transaction.
2. **Conflict risk is very high.** Touching 354 files means this will conflict with virtually any in-flight DRM work. The cover letter correctly notes this should go through drm-next directly to minimize impact, but coordination with subsystem maintainers (i915, amdgpu, msm, nouveau, vc4, etc.) will be essential.
3. **Cannot verify completeness** of the rename without patch 1/2. The diffstat looks thorough, covering core DRM, all major drivers, headers, tests, and documentation. But any missed instances would cause build failures.
4. **The `drm_atomic_commit` name creates a potential naming collision** with the existing function `drm_atomic_commit()` in `drm_atomic.c`. The struct and function would share the same base name. While C allows this (struct tags and function names are in different namespaces), it could cause confusion in documentation and conversation — "drm_atomic_commit" could refer to either the struct or the function. This should be explicitly acknowledged.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-03-31 21:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 14:41 [PATCH v2 0/2] drm: Rename drm_atomic_state Maxime Ripard
2026-03-31 14:41 ` [PATCH v2 2/2] Documentation: drm: Remove drm_atomic_state rename entry Maxime Ripard
2026-03-31 21:41 ` Claude review: " Claude Code Review Bot
2026-03-31 21:41 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260331-drm-drm-atomic-update-v2-0-7e8fe6ddcd32@kernel.org \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox