public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/display: Remove duplicate include
@ 2026-02-11  2:19 Chen Ni
  2026-02-11  6:08 ` Claude review: " Claude Code Review Bot
  2026-02-11  6:08 ` Claude Code Review Bot
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2026-02-11  2:19 UTC (permalink / raw)
  To: amd-gfx
  Cc: harry.wentland, sunpeng.li, siqueira, alexander.deucher,
	christian.koenig, airlied, simona, Cruise.Hung, wenjing.liu,
	robin.chen, jack.chang, PeiChen.Huang, matthew.stewart2,
	dri-devel, linux-kernel, Chen Ni

Remove duplicate inclusion of link_dp_panel_replay.h.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 .../gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c
index cc18a3bebef2..176d0aa1ea77 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c
@@ -39,7 +39,6 @@
 #include "link/link_dpms.h"
 #include "dm_helpers.h"
 #include "link_dp_dpia_bw.h"
-#include "link_dp_panel_replay.h"
 
 #define DC_LOGGER \
 	link->ctx->logger
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Claude review: drm/amd/display: Remove duplicate include
  2026-02-11  2:19 [PATCH] drm/amd/display: Remove duplicate include Chen Ni
@ 2026-02-11  6:08 ` Claude Code Review Bot
  2026-02-11  6:08 ` Claude Code Review Bot
  1 sibling, 0 replies; 3+ messages in thread
From: Claude Code Review Bot @ 2026-02-11  6:08 UTC (permalink / raw)
  To: dri-devel-reviews

Overall Series Review

Subject: drm/amd/display: Remove duplicate include
Author: Chen Ni <nichen@iscas.ac.cn>
Patches: 1
Reviewed: 2026-02-11T16:08:53.323163

---

This is a single-patch cleanup series that removes a duplicate include statement in the AMD display driver code. The patch is straightforward and addresses a code hygiene issue where `link_dp_panel_replay.h` appears to be included twice in the same file.

**Scope**: Single file change removing one line
**Impact**: No functional change - pure cleanup
**Risk Level**: Minimal

---
Generated by Claude Code Patch Reviewer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Claude review: drm/amd/display: Remove duplicate include
  2026-02-11  2:19 [PATCH] drm/amd/display: Remove duplicate include Chen Ni
  2026-02-11  6:08 ` Claude review: " Claude Code Review Bot
@ 2026-02-11  6:08 ` Claude Code Review Bot
  1 sibling, 0 replies; 3+ messages in thread
From: Claude Code Review Bot @ 2026-02-11  6:08 UTC (permalink / raw)
  To: dri-devel-reviews

Patch Review

**Subject Line Assessment:**
- Prefix is correct: `drm/amd/display` properly identifies the subsystem
- Description is clear and accurate
- Follows kernel commit message conventions

**Commit Message:**
```
Remove duplicate inclusion of link_dp_panel_replay.h.
```

The commit message is minimal but acceptable for this type of trivial cleanup. However, it could be slightly improved by mentioning:
- Where the duplicate was found (which file)
- That this has no functional impact
- Optionally: how this was discovered (manual inspection, static analysis tool, etc.)

**Code Analysis:**

The patch modifies:
```
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c
```

The change removes line 42:
```c
-#include "link_dp_panel_replay.h"
```

**Critical Questions to Verify:**

1. **Is this actually a duplicate?** - The patch shows removal at line 42 (after `link_dp_dpia_bw.h`), but we need to verify there's another instance of this include elsewhere in the file. The diff context doesn't show another occurrence, so I cannot independently verify this is truly a duplicate without seeing the full file.

2. **Will this break the build?** - If `link_dp_panel_replay.h` is only included once after this patch and the code in `link_dp_irq_handler.c` uses definitions from that header, the code should still compile. However, if this was the ONLY include and not actually a duplicate, this would break the build.

3. **Include ordering** - The patch shows includes in this order:
   - Various includes above (not shown)
   - `dm_helpers.h`
   - `link_dp_dpia_bw.h`
   - `link_dp_panel_replay.h` (being removed)

**Concerns and Questions:**

⚠️ **VERIFICATION NEEDED**: The diff context doesn't show the first occurrence of `link_dp_panel_replay.h`. Before accepting this patch, reviewers should verify:
   - That this header IS actually included twice in the file
   - Which occurrence is being kept (presumably an earlier one)
   - That the file still compiles after this change

**Technical Review:**

✓ **Correct approach**: Removing duplicate includes is good practice
✓ **Minimal scope**: Change is appropriately limited
⚠️ **Insufficient context**: The diff should show both occurrences if possible, or the commit message should indicate line numbers of both

**Testing Considerations:**

This change should:
- Compile cleanly with no warnings
- Not change any generated object code (can be verified with diffoscope or objdump comparison)
- Pass any existing CI/automated tests

**Recommendation:**

**CONDITIONAL ACK** - This patch is acceptable IF the submitter can confirm:
1. The header is genuinely included twice in the source file
2. The patch has been compile-tested successfully
3. Ideally, show the full include block or mention both line numbers in the commit message

**Suggested Improved Commit Message:**
```
drm/amd/display: Remove duplicate include of link_dp_panel_replay.h

The header link_dp_panel_replay.h is included twice in
link_dp_irq_handler.c (at lines X and 42). Remove the duplicate
inclusion at line 42.

No functional change.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
```

**Questions for Author:**
1. How was this duplicate discovered? (manual review, compiler warning, static analysis tool?)
2. Has this been compile-tested on the target architecture?
3. Can you confirm the other include location in the file?

**Final Verdict:** The patch appears correct for a cleanup change, but lacks sufficient context for independent verification. Maintainers should verify the duplicate exists before applying.

---
Generated by Claude Code Patch Reviewer

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-11  6:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  2:19 [PATCH] drm/amd/display: Remove duplicate include Chen Ni
2026-02-11  6:08 ` Claude review: " Claude Code Review Bot
2026-02-11  6:08 ` 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