Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6279974rwl; Wed, 22 Mar 2023 08:37:25 -0700 (PDT) X-Google-Smtp-Source: AK7set8YNEgMMwvSN0CpxBhamiA59kf0H5fw+xxDXF+mIUfWBJgbqN6P1Pw7qIPrEWCGaYX5dOsY X-Received: by 2002:a17:906:8476:b0:931:96c5:7646 with SMTP id hx22-20020a170906847600b0093196c57646mr7287282ejc.57.1679499445513; Wed, 22 Mar 2023 08:37:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679499445; cv=pass; d=google.com; s=arc-20160816; b=anYBYs7qRSviJCBXIySo12Id5EPDRt6c5gEVepIyvC2G4zYn1Z5cFifAIfwR2FiDNx GFojACuHmfHtDETE+JHHGV0Ec1kgchXSaia5/2XQ2pX2gSKh8ULklTLK9A6xpxXLsd0L 1IJ/wmNdsgbix+9p4RfA9OyYC2vVmnEAOGnB2WP1E8q6HwLjw5Kn1PVFUld4XdP/VIgy A5sMqCY6iEdJV6osRJVBcDigMFIasC8RN/2Nvour64KZKanAhUaukdr+e/YWNfimrWWa unbK4UcVsLEp2Kd/QpyxGr4WJ3cgyQjicJ6N2j39DWGjVAaGW0E1K7oaG00fzM2+lAl0 cucg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=VN0p49hVjY2sANyLdsfWnnYc3OuUqd0S+wk4i08JMQ8=; b=xpMIu7nM1EQ0ptAPldEUG2Jn1DG6WyXgkmjDja133kLAOW5AjD+6i2QPq6WiX2DMt7 Kj17XQbMBRHQtgGXjo6zk+gOchoX7xNxK4NJSFBsZv1YQYL0ZpfZ8CcKFS8peIwXjiPQ ZD1ISJvYn30ATqVgACxZLgA6frHIxrB5gmOCMvdZyfB1//uOT1Sag3HojiiK16x/Gh2A R3NWowgP7d/31Ykk/NtU2IfqwQAfy/XcNIy+WWFdrwTuJobw8NfV/2HDgy/PWrpZ8n+6 kSEeOjjmWsPjR29VPwoEGmON77c/B2iDnm0WeZI9S0f2lwV8nwgW62e6CPiG9zudvBKU 4jFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Ozk0r5yG; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kq14-20020a170906abce00b009212a3f8496si15292675ejb.666.2023.03.22.08.37.01; Wed, 22 Mar 2023 08:37:25 -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=@amd.com header.s=selector1 header.b=Ozk0r5yG; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbjCVPQb (ORCPT + 99 others); Wed, 22 Mar 2023 11:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbjCVPQ2 (ORCPT ); Wed, 22 Mar 2023 11:16:28 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2054.outbound.protection.outlook.com [40.107.237.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3803664207 for ; Wed, 22 Mar 2023 08:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4AarmzafEw6vmrL5yfGsg1zGbNV7IWt14M7XqFd32o1I+Xd0qA2q/ZDS2iNkG0omzDF1sxmVloBHE6WRfBQxSmhiiDI1EgIN/dkXdZG6e0MvMj0nOnQACPx15z60JTWFF3bpEX3WfQHZdDq9VicmEBYekv9T9Sls6ebfo6I3dXwpXxGoA07NOUiffdui4lqAbDeHEraNZz/ZZCFEAIy0DmTTXqPNFgXxWxNLH59PfRhXghYXtJGMxNayqFU2Opqk+A5JE7NVhjxidTpBsjEUlrpxmSIfTje6birnO0REPU7weeCxRY++9yJaGL+njX9As1dQzxkGSJYzGATZOruAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VN0p49hVjY2sANyLdsfWnnYc3OuUqd0S+wk4i08JMQ8=; b=PmRVN359hdvb5SoB8ptHwIDDigstwtDC95PParD3wLfumLo8eoV0rfydS32DsXijfp/+1WLXqMn4KftfVa2mWNKVeiQfSMaZ4Rh42inrppx0c96DoiGv+zZWm7Alxpv6g/LU1+t2e6356ny+UC2mP2jX7sbBsZRWMytfLBGHp96wB4nrgP7s4knK+IMqbjPMYiWY6hoAIn5TikfmB85fq3nqPwDvrMiF/2juZE/IZAqrLgzMrVyU9jvVvuglsdFHuoMteE2aoPT60aUQBUu3egq8y1VOw6vPWrJnhUtOG0q/u1FoOFGFeyuUYa+xZeNB/Q1KHx3gkwyc9gkutGP6jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VN0p49hVjY2sANyLdsfWnnYc3OuUqd0S+wk4i08JMQ8=; b=Ozk0r5yGDuG4zVZ9jFO2r8s5/p0AgPYNcHD+4n2baHrGaNWUlLwf9d4TSuJmzqJy2YaRAS4qH+5Lw8t2O+UZzm3VBhljMDFDViouHeZynHV0SLBS7Pfv+SqwEFzlyo9XsKFWBJ2KGFhCWPjMnQcwN6tINh+TE60jWBaZeNZs8XA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) by DM6PR12MB4369.namprd12.prod.outlook.com (2603:10b6:5:2a1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 15:16:25 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::cdcb:a816:4bc3:a83f]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::cdcb:a816:4bc3:a83f%9]) with mapi id 15.20.6178.037; Wed, 22 Mar 2023 15:16:25 +0000 Message-ID: <135cd1f3-e931-6099-279b-1e5c71bcb373@amd.com> Date: Wed, 22 Mar 2023 11:17:42 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] drm/amd/display: Remove the unused variable dppclk_delay_subtotal Content-Language: en-US To: Jiapeng Chong , alexander.deucher@amd.com Cc: Xinhui.Pan@amd.com, Abaci Robot , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, airlied@gmail.com, christian.koenig@amd.com References: <20230322015917.118874-1-jiapeng.chong@linux.alibaba.com> From: Hamza Mahfooz In-Reply-To: <20230322015917.118874-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQXPR0101CA0037.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:14::14) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|DM6PR12MB4369:EE_ X-MS-Office365-Filtering-Correlation-Id: a0071a28-bdc8-4bfa-b323-08db2ae866e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RqSmpYlQfG4vM1WejegAHfhZ+Zt3G9x4uqofdnll2++2FuyAjefSYUnz0VJp2aPx4KkhMyW3OUUYBOGLeLfd1H4k5u3BZ7FQfCyzSnyDgQC/gO8HcKzjMhE9htu+cky6hCzgZe/X4DK6iEzig5A+Ibx2W1/eoO99xZ12D3Eb+mx2/o68MARow/xL/gsaDQZmFPF/ZOut2kltTSJPxW0FtsQ+LLpiFzmTz+mhAeykMSXc7UWJZmoBwDlG4rwEoE1/ovqPRa3z2kkM3xeH04+LixR/y0YJ70lV8bUDAaeKvpcL9iqUBALsDAT86DXPyMOyNcthAcHgCmH21jCAMwRFeZvn+f9HEfTeuEq5is6BM1cPlr/s4SV/sRzJ6cp12lqq68JlsbDrsjljMvhb+IR4F14HKlHceGRD5kMNzMLvhcbWR6waV2rliGXnPe8nQZX+SKBlqZ4LQS308eUgUviuFE2wK8GUdBkvuylouIxGJPGL4q/bI5YQJAc3wlxjDM7tjWU2gIEw6lfw46P1fmLigdxyda/0wfpZGFEdqbKwqoCUJG8KNRX4DM3L9ZlEWfmFQufYdClU5oGQLoSuj+60mZrJsoUZqJwX9V5oFNQwuYnnDbYqZ/MgHaoXkFDUMcf54+eTF/Wk7xHpYggzWbadLuseYJpvEoYn8r9K/PmDijl7LSUN5tfrMYTt9J1T0eXEb/UD0IEJ1AlE74G7/LzCXLLWJaYd4b8XoyWmlfdk8Ko= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6280.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(346002)(396003)(136003)(39860400002)(376002)(451199018)(2616005)(6512007)(6636002)(38100700002)(86362001)(31696002)(8676002)(8936002)(4326008)(66556008)(66476007)(2906002)(66946007)(36756003)(41300700001)(44832011)(53546011)(5660300002)(186003)(6506007)(6486002)(478600001)(966005)(26005)(6666004)(83380400001)(316002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cEs4UTh5ci80aURrMDVWbFRwOTEzSzE5MnNvTC9YamViWVgvVURlb3orUlhO?= =?utf-8?B?VXRFZGxsVWh2d2pNNy81d2JxdmFuaG5kQzlOdm8vd09pa1BQSllrV1dvL01w?= =?utf-8?B?L3dPQ0FlQUtzYUFsN1VsclVCT3VuaUJRM3RwcWtaU1JFbmhsR3ZWYTNXTjhr?= =?utf-8?B?ZG9XY0JVZlptNVdTeG1CL0ZuR1JZWHp3Uy82VFB3YkIzQjY1elhXbGY1Sm9V?= =?utf-8?B?SFJ5dEliV1EzSjRnMDkyY2F4SXFIenc5dlh0QlNJMmdLWDd0SllVT25zdUdh?= =?utf-8?B?Wk0xTjFnenRUUld1QjVEZFYydXB5NU5QYksyMEZJem15OFNUUWxwVEhiOHNV?= =?utf-8?B?aUpJRUI2YzV0bVQzaVBkVVkyRlc3Unc0TG5POTVEM3JhMXdJNjJkbGlkek42?= =?utf-8?B?RlQybjV5YVEr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Source: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 15:16:25.2156 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: N0xhrmumsgCeT5GJLQxVMvAdj4n8j4U0ECiz7Qz0RNwrmXGW2RkeFnaiuIefHKQhVnLCZPv1s3GVekT7oklJYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4369 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED 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 On 3/21/23 21:59, Jiapeng Chong wrote: > 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 Applied, thanks! > --- > .../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 > -- Hamza