From patchwork Fri Jan 8 20:14:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359046 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855834jai; Fri, 8 Jan 2021 12:15:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlWTMi+ctab0TFcVpJrVebyqOuNyDGoYGK6aI7BXjlmaFmqVGd7ATlcDYfqwSjaxHu6erI X-Received: by 2002:aa7:8d98:0:b029:1a5:929c:1bb2 with SMTP id i24-20020aa78d980000b02901a5929c1bb2mr5396628pfr.4.1610136943120; Fri, 08 Jan 2021 12:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136943; cv=none; d=google.com; s=arc-20160816; b=QWW8E2hQxVQ7YxW9sQDSoFLiyGdhpX1T7eq5ZtEjKy0+4PkoMDtC3oQWrZtBEca3XM JowfTULqJks4v7WIZ60zhhcQufMQWQ5Lo2TvgqQC2czkj7vfdC3lmkSFTI4J/NK9hgui PkxRHc5KhZXxWRfuePT7lXxxf3a0cPBVITwTAYpmJ7yv7IWI1WBDGOKYqis4TxzB+WzU ZpF6B02pXPd1SoLu+0jIYyt9DbWjPHd8+FfRmRB/iheL65wRbsI85DmCrKg81jSdU2c0 LKLPkt0q7c5tw0jKfZVv9rwdl0SMA0P7j1bUvAhImrPODrNO6e7Hbxh4Ts3pXgO+DQKL LH2Q== 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=HU6YfES3kzl1vKeUtIUALZOPjL093cd51BUGU+iZ1T0=; b=wI0fzPy1Avi0q4kgxJIIleTw1oCpqZ+ZFIVWrI2f5w20kcPvei6lLBt8E2rXlSudXD GJ3UA/yjAa1/evyCAw0jl5sNqv/Uqi5/MXKyx8Uv95QaJ7MmGgiJ2I5tN1kskiwlhEyQ ltNnDsfQ29IPdkexJO+cI6SM6KbqwPdfy8JpmOLq49m973ZQYvGQn4/q1EgYlRCRrgN0 TKPsuL5zU9dl4GlWniqjkPLmwryf6y+YmcTYHj7Pn8N9KNo+o+W2oYvxgg0Kl5sfJnLc 7I+OrlnZy1BaHzJg8gDWOUuUblgNy7IsgtCdX0v9JckXIadDD31U9mTtJFOebvkVjW3W zAZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ojEBT5Rs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j24si10131470pll.116.2021.01.08.12.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ojEBT5Rs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 02DBF6E8DE; Fri, 8 Jan 2021 20:15:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id B6D4B6E8CE for ; Fri, 8 Jan 2021 20:15:36 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id m5so10133440wrx.9 for ; Fri, 08 Jan 2021 12:15:36 -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=/no+Onyy5XrK9PB3hyGhFGC7i5BsGoibiINOqxq12AQ=; b=ojEBT5RsN2ItOnq+5hnf27mTpPMgt5HIEpJPbKe+3Zbl9lekg8pVMBTuRv540cHs4Q Tb786eVXAWGOwbyelL9uKyuNmGa2SyOXXZFPpId6DC9pDz0zEMopFAyEsoGH9Ko0N6/b Ub3sMjADxRs1gr0OfoAQdrQrlnoMCYbktSRB6O+/21I/8I2BC9Veblt10uMGncXyY+No Utiitfn6+E8oKxjbI2NCxpWw2s3r7b48u/BQRDA47oZtG8HDS+NQlWzlrgr1yJQi3VA2 PmwuWx0kJpmQT4Rrwft9zA9na/2WeMHyt4gmXpnyipPfAYTPgrVoNsLJRxgqx71P8V8a 8isg== 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=/no+Onyy5XrK9PB3hyGhFGC7i5BsGoibiINOqxq12AQ=; b=Jhfiub6rCzc/CLEbVL/lqzJ/X6DcUh2CGJnMAjdGo2WKK32zx5a6VMXjQOKjRJs3+n fQmavqWC4uvoJ1el4XxXz1jAsJyx11GklmGmA1oI1mgUbHVgqryuax5BwF37VuCF+9uY 2pOeP8Qv//8SMRStCH62/T4wCb1oQqtC1gZngY7Jqfy6asSf3VG7qBktWJwQnkgIHXCH IjbLtRrj7FWkWXBpNvlgDe0PhA+PhlLsBVVpsm4px9eqG2+TVaqAg3n3AJyXLveMFUWU K+b5TtJvwPdhqTTyj0GZNxPulxBlopRUaTZomMEqygkUjoWPvF/XxMqBl+QuCLKT6Dw7 Qxgw== X-Gm-Message-State: AOAM532GOLzMovbzadE3VZNMtUIUWfjCmZzAqkOLc4lLLI3GaOnbCXg5 FIfyx4jvPVa2r7XcsWPw7/Tr2w== X-Received: by 2002:a5d:44c6:: with SMTP id z6mr5259451wrr.306.1610136935433; Fri, 08 Jan 2021 12:15:35 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/40] drm/amd/display/dc/calcs/dce_calcs: Remove unused variables 'v_filter_init_mode' and 'sclk_lvl' Date: Fri, 8 Jan 2021 20:14:38 +0000 Message-Id: <20210108201457.3078600-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:109:18: warning: variable ‘v_filter_init_mode’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘bw_calcs’: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3031:21: warning: variable ‘sclk_lvl’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c index ef41b287cbe23..158d927c03e55 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c @@ -106,7 +106,6 @@ static void calculate_bandwidth( bool lpt_enabled; enum bw_defines sclk_message; enum bw_defines yclk_message; - enum bw_defines v_filter_init_mode[maximum_number_of_surfaces]; enum bw_defines tiling_mode[maximum_number_of_surfaces]; enum bw_defines surface_type[maximum_number_of_surfaces]; enum bw_defines voltage; @@ -792,12 +791,8 @@ static void calculate_bandwidth( data->v_filter_init[i] = bw_add(data->v_filter_init[i], bw_int_to_fixed(1)); } if (data->stereo_mode[i] == bw_def_top_bottom) { - v_filter_init_mode[i] = bw_def_manual; data->v_filter_init[i] = bw_min2(data->v_filter_init[i], bw_int_to_fixed(4)); } - else { - v_filter_init_mode[i] = bw_def_auto; - } if (data->stereo_mode[i] == bw_def_top_bottom) { data->num_lines_at_frame_start = bw_int_to_fixed(1); } @@ -3028,7 +3023,7 @@ bool bw_calcs(struct dc_context *ctx, calcs_output->all_displays_in_sync = false; if (data->number_of_displays != 0) { - uint8_t yclk_lvl, sclk_lvl; + uint8_t yclk_lvl; struct bw_fixed high_sclk = vbios->high_sclk; struct bw_fixed mid1_sclk = vbios->mid1_sclk; struct bw_fixed mid2_sclk = vbios->mid2_sclk; @@ -3049,7 +3044,6 @@ bool bw_calcs(struct dc_context *ctx, calculate_bandwidth(dceip, vbios, data); yclk_lvl = data->y_clk_level; - sclk_lvl = data->sclk_level; calcs_output->nbp_state_change_enable = data->nbp_state_change_enable;