Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3165591pxx; Mon, 2 Nov 2020 01:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxn8kgwSFoASHeQ9cve44EgtEA0nNAzBCu4Tmm4gab6claRuDHpNsw6Vrxnq6LSpvaSds6 X-Received: by 2002:a50:8d48:: with SMTP id t8mr15980205edt.228.1604309512974; Mon, 02 Nov 2020 01:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604309512; cv=none; d=google.com; s=arc-20160816; b=fIx+bNu9RBuNOifuYo+/XYhYgiIoc9y69jyjH4E95Mtk4w6XXaqrzJvgOU7Xk8zMDI I0eeITVQh+sMGvpaw9gfCQ618noa1XFvJrXTgHZ8sDC/YoR4rBymdodwrUKn55E4jaCO oUKNZ+zwA7HdTgwDPYeOLbEBxU1183nrDSqjIHI0qF8/j25PUSJWzfKKH47v5vU3uFvX si834acJDVM19cyZN5H0ib17XoomtYAr91VRA10QgR539OWvY+bFjG5755mwKogLKBO/ cON9pyVpuK/fE3n1Gra1u6DY2zBlV3Kn/+aLveoLv2s675zUyFj0nWjhLvVuHdpkoy9J 3BfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=eaVOX9j+noUFb42NY32dljph2wt7gnQmr4VNesjCmKk=; b=ABzZFy6OB28RPradQ1SCkJEA2u/nD9NG8SMooCfSKthpK/XInuL41wYO2UrdyS3ol8 FcWBgSY9HXH/noCfTK5aC2r/ZniqOoMAMSt/ovjLeKtiRw7MuNEiJh3SaiGIEUQxj/SE iDgvZvmtDuSC3i0dLi780igTj9aa5WfqATKkgUkjT8CQcwL5UWt0UpKaKdUZlx/C5AYC wlvAVFvekWvanNymmCnjvO3rssFoObhGTCpYySyPVBssScRrwvs9yDP+7UkJU6v1i/+Q p4/UcZkKLDSSQX/0wqz4D6IhyoabHsKOm+GcN/YaF2SGEsSNJNVXbM7Q9ElKifswkb07 BG9Q== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si12472425ejm.497.2020.11.02.01.31.31; Mon, 02 Nov 2020 01:31:52 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbgKBJ3N (ORCPT + 99 others); Mon, 2 Nov 2020 04:29:13 -0500 Received: from foss.arm.com ([217.140.110.172]:56568 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbgKBJ3M (ORCPT ); Mon, 2 Nov 2020 04:29:12 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3C476101E; Mon, 2 Nov 2020 01:29:12 -0800 (PST) Received: from [192.168.1.79] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5AC263F718; Mon, 2 Nov 2020 01:29:10 -0800 (PST) Subject: Re: [PATCH -next] drm/panfrost: Fix unused variable warning To: Zou Wei , robh@kernel.org, tomeu.vizoso@collabora.com, alyssa.rosenzweig@collabora.com, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <1604309599-10078-1-git-send-email-zou_wei@huawei.com> From: Steven Price Message-ID: <8729ad8d-31db-c7cd-e962-a0f7db6891b3@arm.com> Date: Mon, 2 Nov 2020 09:29:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1604309599-10078-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/11/2020 09:33, Zou Wei wrote: > Fixes the following W=1 kernel build warning: > > ./panfrost_job.c:617:28: warning: unused variable ‘js’ [-Wunused-variable] > struct panfrost_job_slot *js = pfdev->js; > ^~ > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Boris posted an identical patch earlier: https://lore.kernel.org/r/20201101173817.831769-1-boris.brezillon%40collabora.com Steve > --- > drivers/gpu/drm/panfrost/panfrost_job.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_job.c b/drivers/gpu/drm/panfrost/panfrost_job.c > index 4902bc6..e75b7d2 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_job.c > +++ b/drivers/gpu/drm/panfrost/panfrost_job.c > @@ -613,8 +613,6 @@ int panfrost_job_open(struct panfrost_file_priv *panfrost_priv) > > void panfrost_job_close(struct panfrost_file_priv *panfrost_priv) > { > - struct panfrost_device *pfdev = panfrost_priv->pfdev; > - struct panfrost_job_slot *js = pfdev->js; > int i; > > for (i = 0; i < NUM_JOB_SLOTS; i++) >