Re: [Intel-gfx] [PATCH] drm/i915: fix compilation warnings on maybe uninitialized pointers

2016-11-29 Thread Tvrtko Ursulin
On 29/11/2016 08:56, Daniel Vetter wrote: On Mon, Nov 28, 2016 at 06:43:19PM -0500, Jérémy Lefaure wrote: Two warnings are produced by gcc (tested with gcc 6.2.1): drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: drivers/gpu/drm/i915/intel_csr.c:400:5: error: ‘fw’ is used

Re: [Intel-gfx] [PATCH] drm/i915: fix compilation warnings on maybe uninitialized pointers

2016-11-29 Thread Daniel Vetter
On Mon, Nov 28, 2016 at 06:43:19PM -0500, Jérémy Lefaure wrote: > Two warnings are produced by gcc (tested with gcc 6.2.1): > > drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: > drivers/gpu/drm/i915/intel_csr.c:400:5: error: ‘fw’ is used > uninitialized in this function

[Intel-gfx] [PATCH] drm/i915: fix compilation warnings on maybe uninitialized pointers

2016-11-28 Thread Jérémy Lefaure
Two warnings are produced by gcc (tested with gcc 6.2.1): drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: drivers/gpu/drm/i915/intel_csr.c:400:5: error: ‘fw’ is used uninitialized in this function [-Werror=uninitialized] if (fw) ^ and In file included from