[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200802131809.GE4705@intel.intel>
Date: Sun, 2 Aug 2020 16:18:09 +0300
From: Andi Shyti <andi.shyti@...el.com>
To: Chris Wilson <chris@...is-wilson.co.uk>
Cc: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>,
<dri-devel@...ts.freedesktop.org>, <airlied@...ux.ie>,
<intel-gfx@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<tianjia.zhang@...baba.com>, <matthew.auld@...el.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value
> > > diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c
> > > index d960d0be5bd2..cc017e3cc9c5 100644
> > > --- a/drivers/gpu/drm/i915/i915_active.c
> > > +++ b/drivers/gpu/drm/i915/i915_active.c
> > > @@ -758,7 +758,7 @@ int i915_active_acquire_preallocate_barrier(struct i915_active *ref,
> > > intel_engine_mask_t tmp, mask = engine->mask;
> > > struct llist_node *first = NULL, *last = NULL;
> > > struct intel_gt *gt = engine->gt;
> > > - int err;
> > > + int err = 0;
> >
> > you don't need the initialization here.
>
> But it's close enough that I can munge the patch inline.
> Reviewed-by: Chris Wilson <chris@...is-wilson.co.uk>
sure... you can also remove it before merging it and it might
also need:
Fixes: d8af05ff38ae7 ("drm/i915: Allow sharing the idle-barrier from other kernel requests)
but, yeah...
Reviewed-by: Andi Shyti <andi.shyti@...el.com>
... as well :)
Andi
Powered by blists - more mailing lists