Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5420095rwl; Tue, 21 Mar 2023 19:02:43 -0700 (PDT) X-Google-Smtp-Source: AK7set+gO+p1InM32LyucP3oxFgeDUydc1XgOU950yvtsT48u+7XCZ8s4MNnqcmmRojfSRWdkEXz X-Received: by 2002:a05:6a00:3098:b0:5db:aa2d:9ea0 with SMTP id bh24-20020a056a00309800b005dbaa2d9ea0mr3970522pfb.2.1679450563483; Tue, 21 Mar 2023 19:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679450563; cv=none; d=google.com; s=arc-20160816; b=pLmAm4XHwCWnZkexb+UXkGmuOt+Qb6G1g0aIQwo7qDtKw1FCkENDz3Q5fGV6A1YWO2 7NhxkL9CZ2yUX+5O9AP94sUahw0p0PYEuzg/j8X10vgw3G28E+ZaVnxp3R30tYpUWOZw T8w/Xh3L5d56h5dyCAzlIvAq22iBRbYYjQZifPolEF69lGJE4/RswTsDhrXVWQWOBCyr Cue2xhiWazItm5N5X0CGS9mnKNIpzMbcw/DIP/OZxg1VQdJiqtz5dUHpS78/Xw/HQUk+ LgJslS0o2im76liZAFWE8+8fDYXjBenkqLatyTHo7yKQtX3C6Gx5zNBQKvMYUUqe6AX/ WbzA== 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=g474Ljl4PwOkLBP2ruczlG3d5PMiAf3IonJScz0Vxs8=; b=k0/4OyXWgwIpin93HbaGGwvyXqev+21UaZ8n9QTb5cHhcjyBh8zMRycoCCC88QgOsA T1CJKyQkZiX7D/RufmXBngwB+iBwynaDX5ERfoXfgu5ZKF6MWf65TtNv/8/jLaorofuI Cde2XSii7OdJEAeyHxgEf24R0pZ3z94pEuZpPa+41Y1PY932wBnH+LR4VppHycRvz2MW MBETJXmnbQ9YZ3svWWjHgiI7WUu7D3KnOo5mbWzEhIMH1FLlDq+HtzGh5YJW4rru73VX ucjheWI9ayeOqSCNdJ+sUgz3imZG9TdRfZ4mI19z54X0+uWUt4nWd72OUAKnKz70S3ZN PD0g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a056a00199300b00594356992a1si14489067pfl.108.2023.03.21.19.02.30; Tue, 21 Mar 2023 19:02:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjCVB7b (ORCPT + 99 others); Tue, 21 Mar 2023 21:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjCVB7a (ORCPT ); Tue, 21 Mar 2023 21:59:30 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ACEA4DBCE for ; Tue, 21 Mar 2023 18:59:28 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VeOm6Yv_1679450362; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VeOm6Yv_1679450362) by smtp.aliyun-inc.com; Wed, 22 Mar 2023 09:59:24 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/amd/display: Remove the unused variable dppclk_delay_subtotal Date: Wed, 22 Mar 2023 09:59:17 +0800 Message-Id: <20230322015917.118874-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Variable dppclk_delay_subtotal is not effectively used, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_rq_dlg_calc_314.c:1004:15: warning: variable 'dppclk_delay_subtotal' set but not used. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4584 Signed-off-by: Jiapeng Chong --- .../display/dc/dml/dcn314/display_rq_dlg_calc_314.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c b/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c index 6576b897a512..d1c2693a2e28 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c @@ -1001,7 +1001,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; @@ -1130,17 +1129,8 @@ static void dml_rq_dlg_get_dlg_params( vupdate_offset = dst->vupdate_offset; 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 -- 2.20.1.7.g153144c