Re: [Intel-gfx] [PATCH] drm/i915: Silence compiler for csr_load_work_fn()

2017-11-07 Thread Chris Wilson
Quoting Michal Wajdeczko (2017-11-07 17:48:14) > On Tue, 07 Nov 2017 15:53:34 +0100, Chris Wilson > wrote: > > > gcc-4.7 is not very smart and can not tell that "si" is guarded by size > > being 0. So it complains, > > > > drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: > > dr

Re: [Intel-gfx] [PATCH] drm/i915: Silence compiler for csr_load_work_fn()

2017-11-07 Thread Michal Wajdeczko
On Tue, 07 Nov 2017 15:53:34 +0100, Chris Wilson wrote: gcc-4.7 is not very smart and can not tell that "si" is guarded by size being 0. So it complains, drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: drivers/gpu/drm/i915/intel_csr.c:204:3: warning: ‘si’ may be used unin

Re: [Intel-gfx] [PATCH] drm/i915: Silence compiler for csr_load_work_fn()

2017-11-07 Thread Gabriel Krisman Bertazi
Chris Wilson writes: > gcc-4.7 is not very smart and can not tell that "si" is guarded by size > being 0. So it complains, > > drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: > drivers/gpu/drm/i915/intel_csr.c:204:3: warning: ‘si’ may be used > uninitialized in this function [-

[Intel-gfx] [PATCH] drm/i915: Silence compiler for csr_load_work_fn()

2017-11-07 Thread Chris Wilson
gcc-4.7 is not very smart and can not tell that "si" is guarded by size being 0. So it complains, drivers/gpu/drm/i915/intel_csr.c: In function ‘csr_load_work_fn’: drivers/gpu/drm/i915/intel_csr.c:204:3: warning: ‘si’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/gpu/