* [bug report] Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm/drm-misc
@ 2022-11-18 11:17 Dan Carpenter
2022-11-19 12:21 ` José Expósito
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2022-11-18 11:17 UTC (permalink / raw)
To: sfr; +Cc: José Expósito, dri-devel
Hello Stephen Rothwell,
The patch 23b727d76bda: "Merge branch 'for-linux-next' of
git://anongit.freedesktop.org/drm/drm-misc" from Nov 17, 2022, leads
to the following Smatch static checker warning:
drivers/gpu/drm/vc4/vc4_hdmi.c:351 vc4_hdmi_reset_link()
error: uninitialized symbol 'vc4_hdmi'.
drivers/gpu/drm/vc4/vc4_hdmi.c
346
347 crtc_state = crtc->state;
348 if (!crtc_state->active)
349 return 0;
350
--> 351 mutex_lock(&vc4_hdmi->mutex);
^^^^^^^^^
This locking
352
353 vc4_hdmi = connector_to_vc4_hdmi(connector);
^^^^^^^^^^
needs to be done after this assignment. But this is only in linux-next
so presumably it's a temporary thing.
354 if (!vc4_hdmi_supports_scrambling(vc4_hdmi)) {
355 mutex_unlock(&vc4_hdmi->mutex);
356 return 0;
357 }
358
359 scrambling_needed = vc4_hdmi_mode_needs_scrambling(&vc4_hdmi->saved_adjusted_mode,
360 vc4_hdmi->output_bpc,
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bug report] Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm/drm-misc
2022-11-18 11:17 [bug report] Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm/drm-misc Dan Carpenter
@ 2022-11-19 12:21 ` José Expósito
0 siblings, 0 replies; 2+ messages in thread
From: José Expósito @ 2022-11-19 12:21 UTC (permalink / raw)
To: Dan Carpenter; +Cc: sfr, dri-devel
Hi Dan,
On Fri, Nov 18, 2022 at 02:17:34PM +0300, Dan Carpenter wrote:
> Hello Stephen Rothwell,
>
> The patch 23b727d76bda: "Merge branch 'for-linux-next' of
> git://anongit.freedesktop.org/drm/drm-misc" from Nov 17, 2022, leads
> to the following Smatch static checker warning:
>
> drivers/gpu/drm/vc4/vc4_hdmi.c:351 vc4_hdmi_reset_link()
> error: uninitialized symbol 'vc4_hdmi'.
>
> drivers/gpu/drm/vc4/vc4_hdmi.c
> 346
> 347 crtc_state = crtc->state;
> 348 if (!crtc_state->active)
> 349 return 0;
> 350
> --> 351 mutex_lock(&vc4_hdmi->mutex);
> ^^^^^^^^^
> This locking
>
> 352
> 353 vc4_hdmi = connector_to_vc4_hdmi(connector);
> ^^^^^^^^^^
> needs to be done after this assignment. But this is only in linux-next
> so presumably it's a temporary thing.
>
> 354 if (!vc4_hdmi_supports_scrambling(vc4_hdmi)) {
> 355 mutex_unlock(&vc4_hdmi->mutex);
> 356 return 0;
> 357 }
> 358
> 359 scrambling_needed = vc4_hdmi_mode_needs_scrambling(&vc4_hdmi->saved_adjusted_mode,
> 360 vc4_hdmi->output_bpc,
>
> regards,
> dan carpenter
I think that Stephen already handled this issue as discussed here:
https://lore.kernel.org/all/Y3ZvffZiR+SgtY6h@dev-arch.thelio-3990X/
Jose
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-19 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18 11:17 [bug report] Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm/drm-misc Dan Carpenter
2022-11-19 12:21 ` José Expósito
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.