From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: Rename drm_atomic_state
Date: Tue, 28 Apr 2026 14:55:34 +1000 [thread overview]
Message-ID: <review-overall-20260427-drm-drm-atomic-update-v4-0-c0e713bfdf25@kernel.org> (raw)
In-Reply-To: <20260427-drm-drm-atomic-update-v4-0-c0e713bfdf25@kernel.org>
Overall Series Review
Subject: drm: Rename drm_atomic_state
Author: Maxime Ripard <mripard@kernel.org>
Patches: 2
Reviewed: 2026-04-28T14:55:34.132450
---
This is a 2-patch series by Maxime Ripard (v4, rebased on 7.1-rc1) to rename `struct drm_atomic_state` to `struct drm_atomic_commit` across the entire DRM subsystem. The motivation is well-established: the term "state" at the device level is confusing because `drm_atomic_state` doesn't represent the full device state — it represents a *commit* (a delta/update to a subset of objects). Per-object structs like `drm_crtc_state` genuinely represent the full state of that object, so the naming inconsistency causes confusion and bugs.
**Critical issue: Patch 1/2 is missing from the mbox.** The mbox only contains the cover letter (0/2) and patch 2/2. Patch 1/2 — "drm: Rename struct drm_atomic_state to drm_atomic_commit" — which is the actual 365-file, ~3500-line mechanical rename, is absent. This makes a full review of the series impossible. Only patch 2/2 (the documentation todo cleanup) can be reviewed.
**Naming concern with the existing `drm_atomic_commit()` function.** After the rename, both the struct and the existing function `drm_atomic_commit()` (at `drm_atomic.c:1774`) would share the same base name. Post-rename, the function signature becomes:
```c
int drm_atomic_commit(struct drm_atomic_commit *state)
```
While there's a certain elegance to "commit a commit," this creates ambiguity — `drm_atomic_commit` could refer to either the type or the function depending on context. In C this isn't a compiler issue (struct tags and function names occupy different namespaces), but it could confuse developers reading code or grepping the tree. This was presumably discussed in earlier revisions (v1 used a different name), but it's worth noting.
**Merge conflict risk.** Touching 365 files in one patch guarantees conflicts with virtually any in-flight DRM work. The cover letter correctly notes this should go through drm-next directly to minimize the window of pain.
**Skips file concern.** The vkms CI skip file (`vkms-none-skips.txt`) contains commented-out stack traces with function names like `drm_atomic_state_default_clear` and `__drm_atomic_state_free`. If patch 1/2 mechanically renames these, the skip patterns may no longer match actual kernel symbols, potentially changing CI behavior. These are in comments (prefixed with `#`), so the impact depends on whether the CI tooling parses them.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-04-28 4:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 7:02 [PATCH v4 0/2] drm: Rename drm_atomic_state Maxime Ripard
2026-04-27 7:02 ` [PATCH v4 2/2] Documentation: drm: Remove drm_atomic_state rename entry Maxime Ripard
2026-04-28 4:55 ` Claude review: " Claude Code Review Bot
2026-04-28 4:55 ` Claude Code Review Bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-31 14:41 [PATCH v2 0/2] drm: Rename drm_atomic_state Maxime Ripard
2026-03-31 21:41 ` Claude review: " Claude Code Review Bot
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-20260427-drm-drm-atomic-update-v4-0-c0e713bfdf25@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