Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1353828pxa; Sun, 2 Aug 2020 04:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLR75Z0hH0Ek8GOvaclExrauzBQaG+ng3/rdlMujjRrNvogHjne8sBBXeZuFB3bpTZY+vK X-Received: by 2002:a17:906:30d9:: with SMTP id b25mr11949047ejb.524.1596369244109; Sun, 02 Aug 2020 04:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596369244; cv=none; d=google.com; s=arc-20160816; b=cJV3c44LICAULOYwS9MiIq+BCYL4u0acdVpNcK6Rp4SbrIFCJbo0m3+pcmOxinPFZh FCUOIYRxMFdGj2TJF8pU+B5ype1+/WagR7aHt19fkN8rn31k+uCfFL8DDLI/8+KK8Vvo UNf6qKxcvsQNOHlJqAPyPVa+PucIjXoWLn6MPC7SOZTMLYg6uy3zjdw5VwUgTVBQOMiI 2NRvpIOJUHPPxfozSmiuoE+SqcFcNlLeYkBsXfPY1A0900BfNvutPYZ6zAEUG23/47Qd OKWHadjtMYiTmdUmX2GzF3LgyyvMqqD01lv7LZtZVUJqlVkD2gy+y8XaKyJT7WPSVC/E 2jgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version; bh=DwdsNE0v2Hztr4PQxuQKT6QnU+UHExcrLmzKJ11g9lM=; b=Ldt9gRZYTCMWRg+xtTR2p+MVKSlRSVOZiXr/DKaOPi5d3j/3S2iI0xYppWH7uBPhLK mRaoAQsnqZso2m7hXmuTdXtZrz6HPe7jcfeNro9HH356LqtUbDH15jsGFTyoLBtWWpfi Dt+OGbF+Qnzchv1hMXZI1DR16xXAxATgWa92Ry8IX0KBR3W6XweCRIaJ6jux/mfc0Gma ojToXhMeXa2+mQbZ4WqSre32UfiF36ySzN0I0+/3dv9sjUl/Gx/AYcuDeqm489ImG364 KRD2AHXQVSJX0ERIuhbRrfWx9tUlLpMuGNAkt4t2bXogVoUWZoxOlDQSBWtSbxNA3Q6r 44tA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si1233947edx.292.2020.08.02.04.53.42; Sun, 02 Aug 2020 04:54:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728118AbgHBLvt convert rfc822-to-8bit (ORCPT + 99 others); Sun, 2 Aug 2020 07:51:49 -0400 Received: from mail.fireflyinternet.com ([77.68.26.236]:51468 "EHLO fireflyinternet.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726578AbgHBLvq (ORCPT ); Sun, 2 Aug 2020 07:51:46 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 22008785-1500050 for multiple; Sun, 02 Aug 2020 12:51:23 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20200802114044.GD4705@intel.intel> References: <20200802111534.5155-1-tianjia.zhang@linux.alibaba.com> <20200802114044.GD4705@intel.intel> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value From: Chris Wilson Cc: dri-devel@lists.freedesktop.org, airlied@linux.ie, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, tianjia.zhang@alibaba.com, matthew.auld@intel.com To: Andi Shyti , Tianjia Zhang Date: Sun, 02 Aug 2020 12:51:22 +0100 Message-ID: <159636908251.23037.6183292610375916917@build.alporthouse.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Andi Shyti (2020-08-02 12:40:44) > Hi Tianjia, > > > 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