From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: Re: [PATCH] drm/msm/hdmi: make 'msm_hdmi_pm_ops' static Date: Wed, 11 Mar 2026 13:14:08 +1000 Message-ID: In-Reply-To: <2ojzypkvxomlzfv4yb3l5scnkozxxknth2egkfl6ivmo24shju@gfa64pxrmnk6> References: <2ojzypkvxomlzfv4yb3l5scnkozxxknth2egkfl6ivmo24shju@gfa64pxrmnk6> <2ojzypkvxomlzfv4yb3l5scnkozxxknth2egkfl6ivmo24shju@gfa64pxrmnk6> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review **Verdict: Correct and ready to apply.** The `DEFINE_RUNTIME_DEV_PM_OPS()` macro expands (via `_DEFINE_DEV_PM_OPS` i= n `include/linux/pm.h:374`) to: ```c const struct dev_pm_ops msm_hdmi_pm_ops =3D { ... } ``` Adding `static` in front is the standard way to limit its scope. The symbol= is only referenced within the same file at line 451: ```c .pm =3D &msm_hdmi_pm_ops, ``` So making it `static` is correct and silences the sparse warning without an= y behavioral change. **Minor nit:** The commit message quotes the sparse warning at line 432:1, = which points to the macro invocation. This is fine =E2=80=94 sparse reports= the expansion site. No issues found with this patch. --- Generated by Claude Code Patch Reviewer