From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: fbdev: Wrap user-invoked calls to fb_set_var() in helper
Date: Mon, 25 May 2026 18:52:07 +1000 [thread overview]
Message-ID: <review-patch1-20260522123019.211059-2-tzimmermann@suse.de> (raw)
In-Reply-To: <20260522123019.211059-2-tzimmermann@suse.de>
Patch Review
Creates `fb_set_var_from_user()` in `fbmem.c` that bundles `fbcon_modechange_possible()` + `fb_set_var()` + `fbcon_update_vcs()` into a single call, then converts all callers.
The chrdev ioctl path (`fb_chrdev.c`) was already doing all three steps — this is a direct refactor with no behavior change.
The sysfs `activate()` path (`fbsysfs.c`) was missing the `fbcon_modechange_possible()` check. The new helper adds it, which is a correctness improvement — mode changes through sysfs will now be properly validated against fbcon constraints.
The `ps3fb` driver was also missing the `fbcon_modechange_possible()` check, which is similarly a correctness improvement.
**Semantic change in `sh_mobile_lcdcfb`:** The original code hardcoded `fbcon_update_vcs(info, true)` (update all VCs). The new helper passes `var->activate & FB_ACTIVATE_ALL`. Since `sh_mobile_fb_reconfig()` sets `var.activate = FB_ACTIVATE_NOW` (which is 0), `FB_ACTIVATE_NOW & FB_ACTIVATE_ALL` evaluates to `false`, meaning only the foreground VC gets updated instead of all VCs. This is a functional change — whether it's intentional or a regression depends on the driver's requirements. It's worth documenting in the commit message if intentional, or fixing if not.
The removal of `EXPORT_SYMBOL` for `fbcon_update_vcs` and `EXPORT_SYMBOL_GPL` for `fbcon_modechange_possible` is correct since patches 1-3 eliminate all out-of-module callers before patch 4 fully internalizes them.
The new `fb_set_var_from_user` is `EXPORT_SYMBOL` which is appropriate since `ps3fb` and `sh_mobile_lcdcfb` are separate drivers that need it.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-25 8:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 12:28 [PATCH v2 0/4] fbdev: Internalize fbcon Thomas Zimmermann
2026-05-22 12:28 ` [PATCH v2 1/4] fbdev: Wrap user-invoked calls to fb_set_var() in helper Thomas Zimmermann
2026-05-25 8:52 ` Claude Code Review Bot [this message]
2026-05-22 12:28 ` [PATCH v2 2/4] fbdev: Wrap user-invoked calls to fb_blank() " Thomas Zimmermann
2026-05-25 8:52 ` Claude review: " Claude Code Review Bot
2026-05-22 12:28 ` [PATCH v2 3/4] fbdev: Wrap fbcon updates from vga-switcheroo " Thomas Zimmermann
2026-05-25 8:52 ` Claude review: " Claude Code Review Bot
2026-05-22 12:28 ` [PATCH v2 4/4] fbdev: Do not export fbcon from fbdev Thomas Zimmermann
2026-05-25 8:52 ` Claude review: " Claude Code Review Bot
2026-05-22 13:59 ` [PATCH v2 0/4] fbdev: Internalize fbcon Helge Deller
2026-05-25 8:52 ` Claude review: " Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-05-27 15:14 [PATCH v3 0/4] " Thomas Zimmermann
2026-05-27 15:14 ` [PATCH v3 1/4] fbdev: Wrap user-invoked calls to fb_set_var() in helper Thomas Zimmermann
2026-05-28 2:12 ` Claude review: " Claude Code Review Bot
2026-05-20 16:00 [PATCH 0/4] fbdev: Internalize fbcon Thomas Zimmermann
2026-05-20 16:00 ` [PATCH 1/4] fbdev: Wrap user-invoked calls to fb_set_var() in helper Thomas Zimmermann
2026-05-25 11:30 ` 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-patch1-20260522123019.211059-2-tzimmermann@suse.de \
--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