Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3161667pxx; Mon, 2 Nov 2020 01:24:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbZDYEe19IjcRTgCVH+SgUs6qjb3Z6AoqG9mhNqUcdcinH83GpL8DwX8EH06CktuEE/ghA X-Received: by 2002:a05:6402:28e:: with SMTP id l14mr15468030edv.157.1604309041196; Mon, 02 Nov 2020 01:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604309041; cv=none; d=google.com; s=arc-20160816; b=XjdFd51unD/YAKulEBzqLT19dEBWdRmQS/DzrsdGYfT1IquPiqinpc0u+Zj8CcFkJQ +0Eos5wlY/B0vpQUmUI69ljCJjMdW888wUviKzY5yonrWK4RMvBgIGgofy00dnH1/Zd+ 7h5vURzPatKlkJ8bBXn/1peyYp73yYRI3WRrSEu2Kst5z7ZaXPU4+aJj31cTwwTul+TU H/1CYf5Mu1J51Nv+pald0/pMT/nxOEfotNJKDdhWjoL0n55CYlZGSyQlRNp9Dt7j8yA9 DlMa8drfKy6MJc49t1WWeRKmN+Eg6UkTnzslTDIv6yWkAQttit3WVxTLNgUCdQuFH/br 06/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WivAUHcXij3JDNNizp0Cph720iNjMi2rmtljF8vMPTc=; b=o5lIyYG0UF+VSVz6rpGnFH0HAv08U9TYtZ2qh4iVUAnRLYIGnPd5ic7o4+boXmyRHC 5n2oQL9P40+2dJUVrCmBGj6m8XQR278GEBnlGulvWaebxS8adFfz2uQ9R4a/lljL7ERm tfYMhY/xq+hs5qHRWeTYr9NujuMeEtUygIJNs2WmGStdXOrc1+91Eo7BFTyosWCFzdUi Kq68xN1fz2s7xHaRHnI7KyPicihluk575VqxzEiDS6lEMx8WliZtxRSpqRyL/+f3zE+W YfjipNA9c/WMuvRCzOAXEbGENrg7FRhdVR1xJixA90AVLtBMI18fryADXZwyps2DeRZG qOaA== 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 qt2si10182533ejb.653.2020.11.02.01.23.38; Mon, 02 Nov 2020 01:24:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbgKBJVe (ORCPT + 99 others); Mon, 2 Nov 2020 04:21:34 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7399 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727992AbgKBJVe (ORCPT ); Mon, 2 Nov 2020 04:21:34 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CPnV33Bt7z72BL; Mon, 2 Nov 2020 17:21:31 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 17:21:23 +0800 From: Zou Wei To: , , , , , CC: , , Zou Wei Subject: [PATCH -next] drm/panfrost: Fix unused variable warning Date: Mon, 2 Nov 2020 17:33:19 +0800 Message-ID: <1604309599-10078-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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++) -- 2.6.2