Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1396009pxa; Sun, 2 Aug 2020 06:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdazKbuIzRpGLpQ6Mxt1+2VlwrbTLkHhcNPPKGi27N62KmWbl9ASyiNiHvnf48bbHEi+PY X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr554587edp.157.1596374370100; Sun, 02 Aug 2020 06:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596374370; cv=none; d=google.com; s=arc-20160816; b=Bw3jQXKYT1kmLRNj/OZmx+lU8iGV+kuObQO7u8+Gzekia/fxDBH8+4fxBJRPx/b9J/ 0okNB3HDCFucMYSmXl8hRHciZ73OcLYkziTCPhV9QrVx8lMDsCbC7il8jG8HwtJ8vFle BNWLmL19UC2RB3Ly2NYd48+a3aXYfums4Y4uAgPtFW5z7/9G4cVk/D6NqqcXp4H0LRfi sB+coaq3bO8LwVNgUUusX2Or3Vqo185HZEx555Fjgvkqpv/L3CfkjflG0YLYDvxTr2Is /eNtSvwGlF+L/EDdO8ybiXSJGVKG8re9QO3I18Hmc26OBEny2Gqyjb72nIBdSMhzNYFX eKEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=63nAB/3xvtqH7x4SRIiNJXSSmKgv2/svGYjlWBwI+Ts=; b=sJW2/5i7EcLi9VUJB6jh693DDAicnrc3PA/0E3rhqmoj0Y5MAvNHbknKekjqAv1u4h PC3+xCQ4kscvdgwVHWUl9/OAnQcY4aUA8tfCTaMHJve/5cCE+SIchyMFnpE9WYaL7Li3 VOa/Y7CdIwbGTgnzwQ33EwNNbPdZFVstCoWCPX6fNC060O8acANCGpGN+UA3VuEDmZMG ZCLA6TRHfete1M+gzAdQbSi3NQoh1QuPAp3snuiCSKleFy8CUsdBssr5vOkSHAgThqkH ob7+VQX/b8TZL2YsnlxfeBuBNRL7bMaaiFfwKUoobf1gOlU6Ojfcom9o2MAYfTo7OLXX UHMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si1993968edq.607.2020.08.02.06.19.07; Sun, 02 Aug 2020 06:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728159AbgHBNSN (ORCPT + 99 others); Sun, 2 Aug 2020 09:18:13 -0400 Received: from mga12.intel.com ([192.55.52.136]:3848 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbgHBNSN (ORCPT ); Sun, 2 Aug 2020 09:18:13 -0400 IronPort-SDR: kKa7xpxMSHvfwalvfexwPfAKpw55KsxB5VEA06/uhbbLLm91i27r3IHE2SkV1/9YfI25HiRGEz 3JtTTLzlX9Yg== X-IronPort-AV: E=McAfee;i="6000,8403,9700"; a="131561915" X-IronPort-AV: E=Sophos;i="5.75,426,1589266800"; d="scan'208";a="131561915" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2020 06:18:13 -0700 IronPort-SDR: D0XnYzrieY4fJFknkIn+xxzWKYgbCdjdSTI2rYUnCxaJcO5PpvCPzo7wH34w0rjIiMQc6QlL9A RF1kyDOpmLqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,426,1589266800"; d="scan'208";a="331622703" Received: from cahanley-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.10.182]) by orsmga007.jf.intel.com with ESMTP; 02 Aug 2020 06:18:09 -0700 Date: Sun, 2 Aug 2020 16:18:09 +0300 From: Andi Shyti To: Chris Wilson Cc: Tianjia Zhang , , , , , , Subject: Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value Message-ID: <20200802131809.GE4705@intel.intel> References: <20200802111534.5155-1-tianjia.zhang@linux.alibaba.com> <20200802114044.GD4705@intel.intel> <159636908251.23037.6183292610375916917@build.alporthouse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159636908251.23037.6183292610375916917@build.alporthouse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > 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 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 ... as well :) Andi