[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_latency: fix uninitialized variable

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 28 08:02:44 UTC 2019


Quoting Ser, Simon (2019-03-28 07:59:04)
> On Thu, 2019-03-21 at 09:05 +0000, Chris Wilson wrote:
> > Quoting Simon Ser (2019-03-21 08:59:38)
> > > Signed-off-by: Simon Ser <simon.ser at intel.com>
> > > ---
> > >  tests/i915/gem_exec_latency.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/tests/i915/gem_exec_latency.c
> > > b/tests/i915/gem_exec_latency.c
> > > index 6dd191ec..1b022df5 100644
> > > --- a/tests/i915/gem_exec_latency.c
> > > +++ b/tests/i915/gem_exec_latency.c
> > > @@ -597,7 +597,7 @@ rthog_latency_on_ring(int fd, unsigned int
> > > engine, const char *name, unsigned in
> > >         for (unsigned int child = 0; child < nengine; child++) {
> > >                 struct rt_pkt normal = results[NPASS * child + 1];
> > >                 igt_stats_t stats;
> > > -               double variance;
> > > +               double variance = 0.0;
> > 
> > I know I reviewed a patch by Petri with the same fix...
> > -Chris
> 
> Indeed: https://patchwork.freedesktop.org/patch/291893/
> 
> I'll mark this one as superseeded.

And I pushed Petri's so that warning should disappear.
-Chris


More information about the igt-dev mailing list