Re: [PATCH] drm/i915: avoid potential uninitialized variable use

2017-10-05 Thread Daniel Vetter
On Thu, Oct 05, 2017 at 02:08:26PM +0200, Arnd Bergmann wrote: > One of the recent changes introduced a warning about > undefined behavior in the sanity checking: > > drivers/gpu/drm/i915/intel_ddi.c: In function 'intel_ddi_hdmi_level': > drivers/gpu/drm/i915/intel_ddi.c:654:6: error: 'n_hdmi_entr

[PATCH] drm/i915: avoid potential uninitialized variable use

2017-10-05 Thread Arnd Bergmann
One of the recent changes introduced a warning about undefined behavior in the sanity checking: drivers/gpu/drm/i915/intel_ddi.c: In function 'intel_ddi_hdmi_level': drivers/gpu/drm/i915/intel_ddi.c:654:6: error: 'n_hdmi_entries' may be used uninitialized in this function [-Werror=maybe-uninitial