Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp737414imw; Thu, 14 Jul 2022 09:56:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1suYEa3xe5m9E8Qn+yfemkLbF8Vnfr5EPuUABHnU5itzgad7mjewIN6GgqiXE5T3f4mlKIt X-Received: by 2002:a17:902:7483:b0:16b:f2d8:93f4 with SMTP id h3-20020a170902748300b0016bf2d893f4mr9422839pll.172.1657817762000; Thu, 14 Jul 2022 09:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657817761; cv=none; d=google.com; s=arc-20160816; b=MRlfeV9hJEWwHM8MpGCylUi9gXPiBEinvz4V658/ACAAKJ2P+s5cNfTehDmQZ7tEZr wV1x8F4671PrRvCnTPQzBJ9SDcvE/z8jZeONX0Js16ac9gq44J/Vd6UVUgO4fKMQZo5D LDtmOQFwA82FeHPlhxlAjPfc4TG9SeFOZk0zRFtxqFvc/9+QQWbMSMQd7g+c5+Urg6MW hfBkozQERCUoBu1ihUMarrXMkvArQ8ikgA+TH48dQtM43/lo2aaU7Tu1R7K23qSdw6Dv WMwnULS3+xBjAO1pBTfWE/Krm4qetLyJQa7nMbN1FMq+YG6EFGfgB1d0A6pTvUAewh4c ToQw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pP9rcnidAHad4Gj1HTR8tYohZceEUqg5RbZ3s47MyXs=; b=FGSKxN8wCwcqSVRENFUI3G3u2exN+nJo0bwPgSPnRjHb/fIbJednIN8lDQrg/gGvnt 3SRchb4PPUc3rZSgyTTxBkjiizZYX+erjct16BpbxvTDCy3Q7ofyd1LEbuWXEOGlTBpS XKKKRrmc2k+CwSu6BvKdHQFG/z2vM811dIZwRz5MTbSCNxBt57VmkbrncY9WmiZa3WqA 10B+v8UUPPoQsrwgyJvD6+nCN9/zV0U5+ztanKr+z3/db/R4xnyaRrtYOJTCXzur9S1I db750wDfjBtSPPdL7RO/E1UdK9YvFyTN2kTOl9q2GoX/KHIGZvvEcM4YKuf+HxU+GzgP z83A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=Y+uzNfg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a17090abc4200b001eed3a2e3a2si205183pjv.16.2022.07.14.09.55.45; Thu, 14 Jul 2022 09:56:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=Y+uzNfg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238407AbiGNQt1 (ORCPT + 99 others); Thu, 14 Jul 2022 12:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbiGNQsq (ORCPT ); Thu, 14 Jul 2022 12:48:46 -0400 Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5BD8691C2 for ; Thu, 14 Jul 2022 09:46:22 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4LkL3L33Z7z9sP3; Thu, 14 Jul 2022 16:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1657817166; bh=7ZIyFiuFgYNUa17wM136mhJTJfJP2BZyJxk+lgVG18A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y+uzNfg6XiOpBuZSLVzEP2p3SN9sRea2J7hilAEY4nZMrhmUY1n+PfxmoatQGvpOz I63z0VMk1uhdQ1j9QkgoRTa7PNW3NPINy4qOU4tb7+tB2EJAueeNnwfFMenlcZ+iPz fqNm7CpRF6JVE785RYsGsPSpKHxKEZWwEaeGfrV8= X-Riseup-User-ID: 4D0773E2CA694B3310900D5C7D2DFB5E6AB547B05B4D989EE8DE07658CBFC1D2 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LkL3D20jbz5vW1; Thu, 14 Jul 2022 16:45:59 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mwen@igalia.com, andrealmeid@riseup.net, Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 06/12] drm/amd/display: Remove unused variables from dml_rq_dlg_get_dlg_params Date: Thu, 14 Jul 2022 13:45:01 -0300 Message-Id: <20220714164507.561751-6-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-1-mairacanal@riseup.net> References: <20220714164507.561751-1-mairacanal@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the variables dispclk_delay_subtotal and dppclk_delay_subtotal from the function dml_rq_dlg_get_dlg_params. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:920:15: warning: variable 'dispclk_delay_subtotal' set but not used [-Wunused-but-set-variable] unsigned int dispclk_delay_subtotal; ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:919:15: warning: variable 'dppclk_delay_subtotal' set but not used [-Wunused-but-set-variable] unsigned int dppclk_delay_subtotal; ^ 2 warnings generated. Signed-off-by: MaĆ­ra Canal --- .../dc/dml/dcn31/display_rq_dlg_calc_31.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c index c94cf6e01e25..66b82e4f05c6 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c @@ -866,7 +866,6 @@ static void dml_rq_dlg_get_dlg_params( { const display_pipe_source_params_st *src = &e2e_pipe_param[pipe_idx].pipe.src; const display_pipe_dest_params_st *dst = &e2e_pipe_param[pipe_idx].pipe.dest; - const display_output_params_st *dout = &e2e_pipe_param[pipe_idx].dout; const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg; const scaler_ratio_depth_st *scl = &e2e_pipe_param[pipe_idx].pipe.scale_ratio_depth; const scaler_taps_st *taps = &e2e_pipe_param[pipe_idx].pipe.scale_taps; @@ -916,9 +915,6 @@ static void dml_rq_dlg_get_dlg_params( unsigned int vupdate_width; unsigned int vready_offset; - unsigned int dppclk_delay_subtotal; - unsigned int dispclk_delay_subtotal; - unsigned int vstartup_start; unsigned int dst_x_after_scaler; unsigned int dst_y_after_scaler; @@ -1037,21 +1033,6 @@ static void dml_rq_dlg_get_dlg_params( vupdate_width = dst->vupdate_width; vready_offset = dst->vready_offset; - dppclk_delay_subtotal = mode_lib->ip.dppclk_delay_subtotal; - dispclk_delay_subtotal = mode_lib->ip.dispclk_delay_subtotal; - - if (scl_enable) - dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl; - else - dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl_lb_only; - - dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_cnvc_formatter + src->num_cursors * mode_lib->ip.dppclk_delay_cnvc_cursor; - - if (dout->dsc_enable) { - double dsc_delay = get_dsc_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); // FROM VBA - dispclk_delay_subtotal += dsc_delay; - } - vstartup_start = dst->vstartup_start; if (interlaced) { if (vstartup_start / 2.0 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_end / 2.0) -- 2.36.1