Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1662840rwb; Wed, 16 Nov 2022 23:21:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Mkrm2LSkqDZNE+E4VEKQAp2YtEYxqUZ1CLrcptRmHyq9yha/UvHSUXSGa8BFFXKM4YoVa X-Received: by 2002:aa7:dd4d:0:b0:45c:98a9:7bbf with SMTP id o13-20020aa7dd4d000000b0045c98a97bbfmr1027769edw.372.1668669677763; Wed, 16 Nov 2022 23:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668669677; cv=none; d=google.com; s=arc-20160816; b=Hv7LajbATLfbIPH3tdow2sqrTNxhrzpzxpYVMrFdeUWGQegj7Owabloq7lRklYkGHd K81JiYdwhxPju+UnxsdNX0UlCZzXFrznBV3xNsRrAPcUbNrKzR4NeQ1og3KEHct01cHP Vybg+2dholAkeOVeUsYv67gDxpRPwdUgGuN1l9UURt+SxXGvu1YvOPesVCqg5/BBa46p BaDjFJJE8GzFqOXfKmNhv/J+eCzRIjSQMT9IQzqlpXHYSQ/dHSmgwd9isAj43wIcmPo2 qP/OBZkO3rSNZZRsL+YN1YtB8Z/tDBs3+isr3q0iZt3Slfqt0IFyJar4guGyk8lakvAL tnDw== 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=tmemXYuNoMF8T5n7a/R4vfE+bb4K37oMGwgaYXlTKnY=; b=UNW5GEYsxbAD2Y/+RcvH5zcZ+2Rhe2I7GkHc6ZXUvNjzn+2g4Uy0mgXOZF2JroL8h3 ptQjZa38DmNCTj69s63d+UwSZ0A9QQRwWAFISXY783Vtm14MtdqtuLTW/ayaWpnQkcre MZw1JuCOa1rO5ku57/WpMNR7t7CDNiUMRbeHCrPpFBozv4awzMxVksn5/JPj6kznpfka gLRx2Yb+ykhnmG9bHxYVVRMqX7gD/Vt/n2n2PF8XfpJV7QOXdZTTwIVdi/H+QKgkt6T0 Xhp0Ywgp+SOk/N9Zd85macr/1J7AdnNymmT3FdBfiQzkXF5HAAA3HncdXFlxJYOE12gY l5CA== 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 sg42-20020a170907a42a00b007adcf0dd301si7692692ejc.747.2022.11.16.23.20.56; Wed, 16 Nov 2022 23:21:17 -0800 (PST) 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 S232281AbiKQHHO (ORCPT + 91 others); Thu, 17 Nov 2022 02:07:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232372AbiKQHHK (ORCPT ); Thu, 17 Nov 2022 02:07:10 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FFAC657D4 for ; Wed, 16 Nov 2022 23:07:05 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VV.5Etf_1668668818; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VV.5Etf_1668668818) by smtp.aliyun-inc.com; Thu, 17 Nov 2022 15:07:02 +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 1/2] drm/amd/display: Remove set but unused variable 'TPreMargin' Date: Thu, 17 Nov 2022 15:06:54 +0800 Message-Id: <20221117070655.52749-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Variable TPreMargin is not effectively used in the function, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:3478:10: warning: variable ‘TPreMargin’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3144 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c index d967264e25cf..7f840c20d213 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c @@ -3475,7 +3475,6 @@ bool dml32_CalculatePrefetchSchedule( double min_Lsw; double Tsw_est1 = 0; double Tsw_est3 = 0; - double TPreMargin = 0; if (v->GPUVMEnable == true && v->HostVMEnable == true) HostVMDynamicLevelsTrips = v->HostVMMaxNonCachedPageTableLevels; @@ -3703,7 +3702,6 @@ bool dml32_CalculatePrefetchSchedule( dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0; Tpre_rounded = dst_y_prefetch_equ * LineTime; - TPreMargin = Tpre_rounded - TPreReq; #ifdef __DML_VBA_DEBUG__ dml_print("DML::%s: dst_y_prefetch_equ: %f (after round)\n", __func__, dst_y_prefetch_equ); dml_print("DML::%s: LineTime: %f\n", __func__, LineTime); -- 2.20.1.7.g153144c