* Claude review: drm/tegra: dp: fix kernel-doc warnings in dp.h
2026-02-19 21:55 [PATCH RESEND] " Randy Dunlap
2026-02-22 20:19 ` Claude review: " Claude Code Review Bot
@ 2026-02-22 20:19 ` Claude Code Review Bot
1 sibling, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-02-22 20:19 UTC (permalink / raw)
To: dri-devel-reviews
Overall Series Review
Subject: drm/tegra: dp: fix kernel-doc warnings in dp.h
Author: Randy Dunlap <rdunlap@infradead.org>
Patches: 1
Reviewed: 2026-02-23T06:19:10.410561
---
This is a single-patch series that fixes kernel-doc warnings in `drivers/gpu/drm/tegra/dp.h`. The changes are purely documentation formatting fixes with no functional impact. The patch addresses four distinct kernel-doc issues: a missing `@` prefix, two missing short descriptions, and incorrectly placed nested struct member documentation.
All four fixes are correct and follow standard kernel-doc conventions. No correctness, locking, resource management, or UAPI concerns apply since the patch modifies only comments.
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Claude review: drm/tegra: dp: fix kernel-doc warnings in dp.h
2026-02-19 21:55 [PATCH RESEND] " Randy Dunlap
@ 2026-02-22 20:19 ` Claude Code Review Bot
2026-02-22 20:19 ` Claude Code Review Bot
1 sibling, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-02-22 20:19 UTC (permalink / raw)
To: dri-devel-reviews
Patch Review
Four changes, all correct:
**1. Missing `@` prefix on `tps3_supported`:**
> ```
> - * tps3_supported:
> + * @tps3_supported:
> ```
Straightforward fix. All other members in `struct drm_dp_link_caps` already use the `@` prefix; this one was simply missing it.
**2-3. Empty short descriptions for `apply_training` and `configure`:**
> ```
> - * @apply_training:
> + * @apply_training: apply the link training
> ```
> ```
> - * @configure:
> + * @configure: configure the DP link
> ```
kernel-doc warns when a member tag has no description text after the colon. Adding short descriptions resolves the warnings. The descriptions are terse but adequate for self-explanatory callback names.
**4. Moving nested struct member docs to the parent struct's kernel-doc block:**
> ```
> + * @aux_rd_interval.cr: clock recovery read interval
> + * @aux_rd_interval.ce: channel equalization read interval
> ```
> ```
> - /**
> - * @cr: clock recovery read interval
> - * @ce: channel equalization read interval
> - */
> struct {
> unsigned int cr;
> unsigned int ce;
> ```
The old placement used `@cr` and `@ce` as if they were top-level members of `struct drm_dp_link`, which kernel-doc doesn't understand for anonymous nested structs -- it produced an "Excess struct member 'cr'" warning. Moving them to the parent struct's doc block with the `@aux_rd_interval.cr` / `@aux_rd_interval.ce` dotted notation is the correct kernel-doc approach for documenting anonymous nested struct members.
No issues found. The patch is correct and ready to apply.
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] drm/tegra: dp: fix kernel-doc warnings in dp.h
@ 2026-04-27 18:44 Randy Dunlap
2026-04-28 4:01 ` Claude review: " Claude Code Review Bot
2026-04-28 4:01 ` Claude Code Review Bot
0 siblings, 2 replies; 5+ messages in thread
From: Randy Dunlap @ 2026-04-27 18:44 UTC (permalink / raw)
To: dri-devel
Cc: Randy Dunlap, Mikko Perttunen, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Thierry Reding, linux-tegra, Jonathan Hunter,
David Airlie, Simona Vetter
Use correct kernel-doc format and add missing nested struct entries to
eliminate kernel-doc warnings:
Warning: drivers/gpu/drm/tegra/dp.h:28 Incorrect use of kernel-doc format:
* tps3_supported:
Warning: drivers/gpu/drm/tegra/dp.h:54 struct member 'tps3_supported'
not described in 'drm_dp_link_caps'
dp.h:73: warning: Function parameter or struct member 'apply_training'
not described in 'drm_dp_link_ops'
dp.h:73: warning: Function parameter or struct member 'configure'
not described in 'drm_dp_link_ops'
dp.h:160: warning: Excess struct member 'cr' description in 'drm_dp_link'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Mikko Perttunen <mperttunen@nvidia.com>
---
v2: rebase & resend
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Mikko Perttunen <mperttunen@nvidia.com>
Cc: linux-tegra@vger.kernel.org
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
---
drivers/gpu/drm/tegra/dp.h | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
--- linux-next-20260427.orig/drivers/gpu/drm/tegra/dp.h
+++ linux-next-20260427/drivers/gpu/drm/tegra/dp.h
@@ -26,7 +26,7 @@ struct drm_dp_link_caps {
bool enhanced_framing;
/**
- * tps3_supported:
+ * @tps3_supported:
*
* training pattern sequence 3 supported for equalization
*/
@@ -62,12 +62,12 @@ void drm_dp_link_caps_copy(struct drm_dp
*/
struct drm_dp_link_ops {
/**
- * @apply_training:
+ * @apply_training: apply the link training
*/
int (*apply_training)(struct drm_dp_link *link);
/**
- * @configure:
+ * @configure: configure the DP link
*/
int (*configure)(struct drm_dp_link *link);
};
@@ -113,6 +113,8 @@ struct drm_dp_link_train {
* @max_lanes: maximum number of lanes supported on the link
* @caps: capabilities supported on the link (see &drm_dp_link_caps)
* @aux_rd_interval: AUX read interval to use for training (in microseconds)
+ * @aux_rd_interval.cr: clock recovery read interval
+ * @aux_rd_interval.ce: channel equalization read interval
* @edp: eDP revision (0x11: eDP 1.1, 0x12: eDP 1.2, ...)
* @rate: currently configured link rate
* @lanes: currently configured number of lanes
@@ -126,10 +128,6 @@ struct drm_dp_link {
struct drm_dp_link_caps caps;
- /**
- * @cr: clock recovery read interval
- * @ce: channel equalization read interval
- */
struct {
unsigned int cr;
unsigned int ce;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Claude review: drm/tegra: dp: fix kernel-doc warnings in dp.h
2026-04-27 18:44 [PATCH v2] drm/tegra: dp: fix kernel-doc warnings in dp.h Randy Dunlap
2026-04-28 4:01 ` Claude review: " Claude Code Review Bot
@ 2026-04-28 4:01 ` Claude Code Review Bot
1 sibling, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-04-28 4:01 UTC (permalink / raw)
To: dri-devel-reviews
Overall Series Review
Subject: drm/tegra: dp: fix kernel-doc warnings in dp.h
Author: Randy Dunlap <rdunlap@infradead.org>
Patches: 1
Reviewed: 2026-04-28T14:01:51.088204
---
This is a single, straightforward kernel-doc fix patch (v2, rebased) for `drivers/gpu/drm/tegra/dp.h`. It addresses four kernel-doc warnings by correcting documentation formatting. The patch is correct, minimal, and already carries an Acked-by from the Tegra maintainer (Mikko Perttunen). No functional code changes are involved.
**Verdict: Looks good. No issues found.**
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Claude review: drm/tegra: dp: fix kernel-doc warnings in dp.h
2026-04-27 18:44 [PATCH v2] drm/tegra: dp: fix kernel-doc warnings in dp.h Randy Dunlap
@ 2026-04-28 4:01 ` Claude Code Review Bot
2026-04-28 4:01 ` Claude Code Review Bot
1 sibling, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-04-28 4:01 UTC (permalink / raw)
To: dri-devel-reviews
Patch Review
**Status: Clean**
The patch fixes four distinct kernel-doc issues:
1. **Missing `@` prefix on `tps3_supported`** (line 103 of the diff):
```c
- * tps3_supported:
+ * @tps3_supported:
```
Correct — kernel-doc requires `@` prefix for struct member documentation.
2. **Empty descriptions for `@apply_training` and `@configure`** (lines 113, 119 of the diff):
```c
- * @apply_training:
+ * @apply_training: apply the link training
```
```c
- * @configure:
+ * @configure: configure the DP link
```
Correct — kernel-doc warns when `@member:` entries in a struct/ops doc block have no description text. The added descriptions are brief and appropriate.
3. **Misplaced nested struct member docs for `aux_rd_interval`** (lines 126–141 of the diff):
The old code had `@cr` and `@ce` documented in a separate `/** */` block directly above the anonymous struct, which kernel-doc doesn't associate with the parent struct's doc block. The fix removes that orphaned comment and instead documents `aux_rd_interval.cr` and `aux_rd_interval.ce` as nested member entries in the parent `struct drm_dp_link` doc block:
```c
+ * @aux_rd_interval.cr: clock recovery read interval
+ * @aux_rd_interval.ce: channel equalization read interval
```
This is the correct kernel-doc syntax for anonymous nested struct members, and eliminates both the "Excess struct member 'cr'" warning and the implicit missing-member warnings.
All four fixes are correct kernel-doc usage. The patch is well-scoped — it changes only documentation, no functional code. The commit message clearly lists all four warnings being fixed. The Acked-by from Mikko Perttunen is appropriate as the Tegra driver maintainer.
No concerns with this patch.
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-04-28 4:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-27 18:44 [PATCH v2] drm/tegra: dp: fix kernel-doc warnings in dp.h Randy Dunlap
2026-04-28 4:01 ` Claude review: " Claude Code Review Bot
2026-04-28 4:01 ` Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-02-19 21:55 [PATCH RESEND] " Randy Dunlap
2026-02-22 20:19 ` Claude review: " Claude Code Review Bot
2026-02-22 20:19 ` Claude Code Review Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox