Re: [Intel-gfx] [PATCH] drm/i915/selftests: Always initialise err

2017-11-14 Thread Pandiyan, Dhinakaran
On Tue, 2017-11-14 at 19:47 +, Chris Wilson wrote: > smatch does not track initialised values as well as gcc, and this > triggers many warnings by smatch not presented by gcc. Silence smatch by > initialising the error values to -ENODEV, which we use to denote > internal errors. (If we see a s

[Intel-gfx] [PATCH] drm/i915/selftests: Always initialise err

2017-11-14 Thread Chris Wilson
smatch does not track initialised values as well as gcc, and this triggers many warnings by smatch not presented by gcc. Silence smatch by initialising the error values to -ENODEV, which we use to denote internal errors. (If we see a selftest fail with a silent -ENODEV, we know smatch was right!)