<div dir="auto">I think Alex moved to gitlab for his branches</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 23, 2021, 12:50 AM Simon Ser <<a href="mailto:contact@emersion.fr">contact@emersion.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tuesday, February 23rd, 2021 at 12:44 AM, Nathan Chancellor <<a href="mailto:nathan@kernel.org" target="_blank" rel="noreferrer">nathan@kernel.org</a>> wrote:<br>
<br>
> On Mon, Feb 22, 2021 at 11:05:17PM +0000, Simon Ser wrote:<br>
> > On Monday, February 22nd, 2021 at 8:25 PM, Souptick Joarder <<a href="mailto:jrdr.linux@gmail.com" target="_blank" rel="noreferrer">jrdr.linux@gmail.com</a>> wrote:<br>
> ><br>
> > > >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9804:38:<br>
> > > >> warning: variable 'i' is uninitialized when used here<br>
> > > >> [-Wuninitialized]<br>
> > > timing = &edid->detailed_timings[i];<br>
> > > ^<br>
> > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9714:7:<br>
> > > note: initialize the variable 'i' to silence this warning<br>
> > > int i;<br>
> > > ^<br>
> > > = 0<br>
> > > 1 warning generated.<br>
> > ><br>
> > > Initialize the variable 'i'.<br>
> ><br>
> > Hm, I see this variable already initialized in the loop:<br>
> ><br>
> > for (i = 0; i < 4; i++) {<br>
> ><br>
> > This is the branch agd5f/drm-next.<br>
><br>
> That is in the<br>
><br>
> if (amdgpu_dm_connector->dc_sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT<br>
> || amdgpu_dm_connector->dc_sink->sink_signal == SIGNAL_TYPE_EDP) {<br>
><br>
> branch not the<br>
><br>
> } else if (edid && amdgpu_dm_connector->dc_sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A) {<br>
><br>
> branch, where i is indeed used uninitialized like clang complains about.<br>
><br>
> I am not at all familiar with the code so I cannot say if this fix is<br>
> the proper one but it is definitely a legitimate issue.<br>
<br>
I think you have an outdated branch. In my checkout, i is not used in the first<br>
branch, and is initialized in the second one.<br>
<br>
<a href="https://cgit.freedesktop.org/~agd5f/linux/tree/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c?h=drm-next#n9700" rel="noreferrer noreferrer" target="_blank">https://cgit.freedesktop.org/~agd5f/linux/tree/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c?h=drm-next#n9700</a><br>
</blockquote></div>