From patchwork Mon Nov 16 17:40:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324491 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3506340ils; Mon, 16 Nov 2020 09:41:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxreB+Npw/U0zXbgjstPXNsdtPiREEHCQzwWddc2XQeTN69E5m1c3WolU/YYZ/FJj3MlDsF X-Received: by 2002:a63:5315:: with SMTP id h21mr287419pgb.43.1605548512506; Mon, 16 Nov 2020 09:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548512; cv=none; d=google.com; s=arc-20160816; b=W4mQY3bNUNK3LkYGocXI8WFgieIdULUo6oV7YNHLh4hIfgBCU/AmY9QZEthUpdagjf uusrpPdJsB+PAOcczCCltYFkBGUkSYBVA0tPgRxhw66ynB6w+XWKC0XJtViNrCx/MuAI sPNrBQ81/qat2SrfC5aDVPgrbXikT24c3otDr9vzzRa4b9bkjYtSlJ6IQ+AHjwbILhr2 OVaVGog7I1clOLEOwFxmrTFhN8k4PfTHdB7Qs+klzeyvRhzH3nGHVipXWALkBhGvBwiG lUx0mbMDeNK9Xec3QXJkBFrB8Y9DnKNqsMzZQzYWi+CL8HZuP2tQW6l64znxLyd3GXtu 1BcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=pkKwH2YmoW4EL2xO21AlRwHvSWLg5wzuC0VxNyadpuo=; b=fTgGgd6v7Sg88NH0jVeeJWlzlUsDr3sZXSeCaO4x9giKPBOzvTdQS3LYE8olw4NSs8 3cLIQDnYWQaAqM0mZ34YUsupBcmGNDxDoBUTVwmvm2rruHfueUm6Kg09Ghk3lVEiMV7M 6JZUbKNJSsPXZTSHITjBykw96G9YPutBjbmuD7/wtuXJBfcU/Hq/DVpsvhKnTyDVBerL ikafan96RScZdSSDTtT9RmW09s8D5lN/ciqSRZb7g7b1HSeobZpXSlVUBroQVd0wxfm6 BV1WVz7/8tTR15UHmR6mtLwCNxqdD6gN4Y2gMXJCe+5Q59vPLRPE3AHIaUBz+uKjXDCJ Jl0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X+iICUpO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id k4si15899860pll.66.2020.11.16.09.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X+iICUpO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B27EC6E9F6; Mon, 16 Nov 2020 17:41:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD6296E9F6 for ; Mon, 16 Nov 2020 17:41:49 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id p22so45162wmg.3 for ; Mon, 16 Nov 2020 09:41:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9DOFB5vifJrGCOQSMWDE/st4cKx6AKkD/v2b5HFyfb8=; b=X+iICUpO07+6FTpBe9dc71KtGg8uVMewqxXw4D54HQsNDi4x7YTQk2GI/vSs8br2zi crL563AJExk5eH18GIwjCAD0tshWPsin4COHswwCL/nH8tx33M1PjxIOU3kiTc8Fvs/u gSRDchhQJmAEdF9gUpcdoeNucpAXAp8CNKCRwvF3+HVAfYHagK75m6m7RatkRP0atc2m 9zQwBX4MPKuBogzEL+AppX1vdWxnkxbscsUjUd8g1/tOhIMjquQ7asSMKY52j9Lc9L2n TOYOoTdPw779Nlt23XfL9DpCiipWJ7T1NQval3HatqKNeblalmvAiatADjg04bp4H9PL Wj/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9DOFB5vifJrGCOQSMWDE/st4cKx6AKkD/v2b5HFyfb8=; b=RrPxSMVYaKs28bUsr9RU/Lmh+TYNiaImRSXyQNWIaKG2PJGz7LMmQyR8XFKbskxw3w ysKDQSO54CmOJA+X7/8wDmESsecHliCw3ZWDJwqZkWL3N/GXyuOaV4O00EM9PFGiI44g Tn6It4vzIRFo7a3Ar7+2Pzi3hWTiQfIieHKnYv4+/G6f6OqyX+lfkr6TTnYeUTE0qeK3 DRgWa0q8KzPS4FuGsih10ey5vUx/CVQYUgA4FKT+rDlcFLkgCbQsmQs4aeLT2+vm0Oab yjiYhOz7NNhjcLunrnk5vo3om8YvQoNp0MA6C9mGPqiNmM3T/BW314R+tLu6W8FkBxYn fI6A== X-Gm-Message-State: AOAM532MASxaHqk2aFHME/eHBqVkknAL/8QbW5qJt3xVZExuQ6g588V4 aeA+4n1OAt2GrBL/Ybkg89msiA== X-Received: by 2002:a7b:cbcf:: with SMTP id n15mr15729wmi.156.1605548508417; Mon, 16 Nov 2020 09:41:48 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/42] drm/msm/disp/dpu1/dpu_core_perf: Remove set but unused variable 'dpu_cstate' Date: Mon, 16 Nov 2020 17:40:49 +0000 Message-Id: <20201116174112.1833368-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116174112.1833368-1-lee.jones@linaro.org> References: <20201116174112.1833368-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Abhinav Kumar , Kalyan Thota , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c: In function ‘_dpu_core_perf_calc_crtc’: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:113:25: warning: variable ‘dpu_cstate’ set but not used [-Wunused-but-set-variable] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Kalyan Thota Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Lee Jones Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c index 37c8270681c23..36927fc04a388 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c @@ -110,14 +110,11 @@ static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, struct drm_crtc_state *state, struct dpu_core_perf_params *perf) { - struct dpu_crtc_state *dpu_cstate; - if (!kms || !kms->catalog || !crtc || !state || !perf) { DPU_ERROR("invalid parameters\n"); return; } - dpu_cstate = to_dpu_crtc_state(state); memset(perf, 0, sizeof(struct dpu_core_perf_params)); if (kms->perf.perf_tune.mode == DPU_PERF_MODE_MINIMUM) {