Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2970070iog; Mon, 27 Jun 2022 06:42:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utGLF7aiXhBPF4NoLtlEe+q2xSidXca2fvOdtg1WdiS5ELFr74PkxyjYE2i08ztuNsToiE X-Received: by 2002:a17:903:2344:b0:16a:5750:e02d with SMTP id c4-20020a170903234400b0016a5750e02dmr14689834plh.89.1656337378180; Mon, 27 Jun 2022 06:42:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656337378; cv=pass; d=google.com; s=arc-20160816; b=aWyM2ZSSGU6wo/jAmehuL3TGg8oUyuDpPtGRNxorG6VfE/mJE03zPFrw7r/9PiWV7E fcGoTrshHrDa/Uidyf5lGzLKRnlt5hKRAIFjxopimVLazho29lse/h4+gJZae8JBJYyM KxF0wPT2JdgzxG+fQJPQ8kEHwLh9cWtEqsy63uvZ9NUSYUgFO5GFQ+YPgNEt2m1PLa97 P2oLgxkz95tz/jt4OSk+A4UDJwcZhXhM3vZnPDWUsQUY340AUta1uca+gVwfe8aUPN68 533OTJ2bO43sSi7YP4qiLFS39BM4D8C5BKJi0v/lMc8q+uVSM83etJT7vFj3lKJcCeVA csQw== 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=mTW9807fSmek61EFVObBtCP6nMcSF9w9GZ1UHfALeKQ=; b=e8WmtFsxrVzXIV/hqxLskS60awJB002xINkaKizbdCeUAdDAyaiJCiYOpei3GEQ/8R IENW/kT8Ovosf+7VGD+irJ4v2g8Ct9uxnNXjmshmSpZndhxHaoAkYtH2Q4hjjn0ZdxLI oVQHeNW7LXG3hhdy/QOC+vMoQzfXMo1jxBmYvbUcspBwJND3qTXAbFEejO3ALfkdMepK M0Dzkne6VQghP+OIiD8GoorzOYy2uMsxehWWNlBEmQ10SF8yIXeXimEGx9/y2Gz4cmsC Q4hOTWKfVHtFBrW+yUikRa6FbtuLm6LtsCR92vMxSEkE64Gp0/nkQX9jrnwwEr8ooVAD uQ3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=1ECM0Hua; 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 37-20020a631765000000b0040ddd26512bsi5631889pgx.856.2022.06.27.06.42.44; Mon, 27 Jun 2022 06:42:58 -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=1ECM0Hua; 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 S235460AbiF0NUI (ORCPT + 99 others); Mon, 27 Jun 2022 09:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234136AbiF0NUG (ORCPT ); Mon, 27 Jun 2022 09:20:06 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2043.outbound.protection.outlook.com [40.107.220.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0AAF1104 for ; Mon, 27 Jun 2022 06:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RQdZtu95xCR63E9HtWjbisY6VEi8hgF1icU1vpRZC4bDL1gyfY8TMfua9UjLP/6lAh8kLr3F7WJNnf6Z2aJKfXQ6u9pLpfOh/VcPRTOyST78R+Fhr+4S0vMJskW4L/qp/QXMRedx4Hq20RiA1WdjdUBGaacbAenk/FH8B2vvc5V13LdRg3hITp/EARGg15SZmjT5JY4N4ZNCP+slIlSJzb4FozmCVCtOKz4zhUlukpqf0PeXKAVuQ9K6nNwJzzbT2qfBacimj6OVV6FiySPHd09ioCdMaNfoIYPhVpkLUqLQZnrWpv3MEDIBlwsIWh11PrHeraeawKgNUF14AF8jfg== 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=mTW9807fSmek61EFVObBtCP6nMcSF9w9GZ1UHfALeKQ=; b=Kk/VtUqAq68QIK16zyoCelC6kcS/ik/f5vWrTV9kc+G866PxvGr2F5JnAW3bnXBB2F6KaxWvzmZlM7TziXaoEGuw7jAKmk8X8MrONa0r5HzSmuURq8rFuLPJTKTSevnO2m5m1Wk8Vp10HCNk8UDc/y+s5AHLvVBwV20AA0ASzLBnlCZ+3Teew2hHqw2ODnOpHGZItWPnrW9AqS764POk2aWkuQmaaVWtmvwfgjPyf7PBE7N1cFOkyaAwhvEGSCO8LZSJjcx1MD1U/Q5M8HLBypECUay40aw/6Hhw6BkzKlG9BmAuYBCxx/0SKj4c2o/H9V0NzyQv6rEvLR5GhOl+ag== 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=mTW9807fSmek61EFVObBtCP6nMcSF9w9GZ1UHfALeKQ=; b=1ECM0HuaaUzpDBkfCNLCNdg9zcXcto3NU6v/YCtM/1BLslA4Us0fChRydyOwFtdlodOaB2J2mA8MFV+osIZZmpcZvX+jeeOxcPFsGu+OjGf08b2ZOEX7VdT5iTo3Ewk3Jasn/TbgdqiFl6cxkbHCJvIqf1iLppEaZAV4n6j4Lmo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH0PR12MB5284.namprd12.prod.outlook.com (2603:10b6:610:d7::13) by BN6PR12MB1634.namprd12.prod.outlook.com (2603:10b6:405:4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Mon, 27 Jun 2022 13:20:03 +0000 Received: from CH0PR12MB5284.namprd12.prod.outlook.com ([fe80::1563:b9e5:78e3:5c15]) by CH0PR12MB5284.namprd12.prod.outlook.com ([fe80::1563:b9e5:78e3:5c15%5]) with mapi id 15.20.5373.018; Mon, 27 Jun 2022 13:20:03 +0000 Message-ID: Date: Mon, 27 Jun 2022 09:20:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] drm/amd/display: Remove unused globals FORCE_RATE and FORCE_LANE_COUNT Content-Language: en-US To: Tom Rix , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, wenjing.liu@amd.com, Jun.Lei@amd.com, George.Shen@amd.com, Jimmy.Kizito@amd.com, Jerry.Zuo@amd.com, michael.strauss@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220626142053.3373970-1-trix@redhat.com> From: Aurabindo Pillai In-Reply-To: <20220626142053.3373970-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BLAPR03CA0003.namprd03.prod.outlook.com (2603:10b6:208:32b::8) To CH0PR12MB5284.namprd12.prod.outlook.com (2603:10b6:610:d7::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24aca21d-a20e-40e4-54b9-08da583fbe92 X-MS-TrafficTypeDiagnostic: BN6PR12MB1634:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eBydMWiUG+3jBtcY20nkZ2SfxeQIPtI139pBbmOyuCYBbNLhu/DgkavSQqB0cxnDu3nmpO3mJtInISClrjYIYbTowWdbYTu0BlaePiWEUGGUj6fzX8thu8WfFPLvAUFRc570bJodfqmQUslAI87Bj26v0jPzLwAMg+R5PB0MmVXEXQI/E4a4dDuOZcq2rPyBpi4Icdwp2NE80IIWJSfJ/3yYyh8ZWRUv9MrSijlPSuPFsE/EpiirH1Ute+9qvK5Xawxfr7Ik7eWWvcqHnjk38E54aFn8F4JpdIeI8AiWc+/JkIX7LzIcwiFIKtFw1kUMBF9Ofl5wE0u4BkZ7HTZX1chpJCwVO9ehC/gA+U5zgOIcj0SuQC/ecms5qDx0BpC8EApdlwy486vveAvecBEjuMmGtqQD2QOE+GJnGusE9NNa6h+uZVfumiJyHcRMtUoOGoYp0FIKGw7mrt56DrfSj3uUyvP31Jt/aD3PHi+TEI6wkn4iLXCbSZ94IxUZX+EgROoCNN/3OmsIx3dFIRMNQzj09sYv/6FelSBLZuptyqlcYuprYvgBxiJwcTHQxblDECbq6L0FbjAe0H0iYUKWnfqN66GI3RXwwpi7AQ0Npci1nUjhmFb8rcNS7d8COLe3wNaEFy5Ol501UbBSqX9uQ0sUIH9DfSk7C7bScxvMHDGcA7yxHReb/NFzHTqBD4Rj5o2LFjW3ZxS7jWLtIrLHlpff1l16S2bB6675bNsdYqG/pFQ9Wkb654PufnPUZ46f1lWAR2mH8m+C6Bbq9jnrAla7ys9BQCLp7NtvGaxQkcoTZIc8bimdwULhTH+VsrIUqVwUjWHHyBavstgXms4uSIjYxSck5ERh5bs441J2h3U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR12MB5284.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(366004)(346002)(396003)(136003)(39860400002)(478600001)(83380400001)(2616005)(6636002)(4326008)(6512007)(53546011)(186003)(31696002)(31686004)(38100700002)(316002)(41300700001)(6486002)(5660300002)(26005)(36756003)(86362001)(8676002)(66946007)(921005)(8936002)(2906002)(6506007)(66556008)(66476007)(44832011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NytoMldkZGt6UDNTN1dVQ0FtMGZQdzQxN1RCUlA3dzRhRFJka1l6N0xsb25j?= =?utf-8?B?TzFPOEl6aTBzUTRFWVFDOWNHbDA2eHRpeGdvd0o0Myt4MVVBTDVoNzMwY3BI?= =?utf-8?B?dFlVU3Z2SzJNbWJCUExhUXhTaTFzZkdiZTlFUDh6R0dnSDJESVMrZmRiMDRC?= =?utf-8?B?VnZBTkU3TjNqbFBRSnZ6SytTUVNrUVpLUFgzU0tFT0xPZVZ6S3lBdHNiOW1i?= =?utf-8?B?UlVadlNUazZHWGtwMWxkUFo0aVlDK3NNREFKQy9FZ0x1aHdMQmVtRWV6bzRx?= =?utf-8?B?dld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aN2QyN3Y3c2F2anJtWmZtQTZMY1BuUlk2RzUz?= =?utf-8?Q?A13HxEyDj1HROjwlaOiq+WiKg?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24aca21d-a20e-40e4-54b9-08da583fbe92 X-MS-Exchange-CrossTenant-AuthSource: CH0PR12MB5284.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2022 13:20:03.3228 (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: +Wfz/1VBOsnxCtRAh0Q7AgtJCR/H3JueGkIBpqkwdKP4FviWd5mAJMKYzOlqHh0XVBhVys9RaePnMXbsdk3Jpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1634 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 On 2022-06-26 10:20, Tom Rix wrote: > sparse reports > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:3885:6: warning: symbol 'FORCE_RATE' was not declared. Should it be static? > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:3886:10: warning: symbol 'FORCE_LANE_COUNT' was not declared. Should it be static? > > Neither of thse variables is used in dc_link_dp.c. Reviewing the commit listed in > the fixes tag shows neither was used in the original patch. So remove them. > > Fixes: 265280b99822 ("drm/amd/display: add CLKMGR changes for DCN32/321") > Signed-off-by: Tom Rix > --- > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > index be1dcb0a2a06..f3421f2bd52e 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > @@ -3882,9 +3882,6 @@ static bool decide_mst_link_settings(const struct dc_link *link, struct dc_link_ > return true; > } > > -bool FORCE_RATE = false; > -uint32_t FORCE_LANE_COUNT = 0; > - > void decide_link_settings(struct dc_stream_state *stream, > struct dc_link_settings *link_setting) > { Reviewed-by: Aurabindo Pillai