Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4450293rwd; Tue, 23 May 2023 07:55:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KE2wX9xQXonf55qQ++gHGiWt/ver8jtmcmJ7H669ryGFlrdXuAjD3fCfXdkbG/NRpDsM/ X-Received: by 2002:a05:6a00:850:b0:647:776c:d19c with SMTP id q16-20020a056a00085000b00647776cd19cmr20850632pfk.13.1684853734868; Tue, 23 May 2023 07:55:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684853734; cv=pass; d=google.com; s=arc-20160816; b=XTQ3B6BnZfwAsixSQDCsm2aBC4xrk4tG5OHXakhkvXHzQqja+aN61AK+aA+akS6hXH J8boH+edMyIhtitszBl0TVKEKsuYf1hczzf/OZv5qQy3S9xJT+3Q3W4ttbbPecvXGckZ dvha/xbOKqHSoDKMBzLnNht+mhm5W7rKV94Yh2Mp0pM2KSPtnzLiyYgC4nHyDwG2vy3b dX/UjGKwn/SyrYmATPdN2sNFaBb7sGmuCCay9miqFJsIjiAv6ZX+9v3ByGT7FpLlRDqh uAyzTQ/PAQLjVY1AlWE7XekTbBprCoq9PkteBxRx+Dye8d1dfsng91hXiZCkFOlynGuo DaNQ== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=FRBXrDPnExFzNFtiFrF5d/kagU00kAvj1SvIkoNHsXo=; b=cfu2z7EOebkuheZ7lv+NvMPrdSOaLsiowL2axGLQVrQp6YJn5Yqk0HIG0Ow9ynEkOD y3g19g5yYa0iZdmm7pY9+EiPBqQ2SA7Lh0oC05NkeGx7Vu48P8YpnnpzxCTvzjEUpTxU E0blcH5PPMiXBKyOUf9Xt2qyNdXlitoQ9JT6V1Wm8vrKyTIjabm7SJrMzZoxyRPsqrbd v8vFv4/16UgotHbl0ByfFxR07BISvXEitxJwcwrTQKxyMZwJ60McaDDz/CwT0lDh7d27 w5Y+7e+I1jmWm5IPrhueZmJfO5k706UwU2IhbMCBTLSnpFbemJSPeVv16UVqgwn3NATX +FYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=dIA5Xzsa; 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 b5-20020a63eb45000000b005301151503esi2355189pgk.186.2023.05.23.07.55.22; Tue, 23 May 2023 07:55:34 -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=dIA5Xzsa; 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 S237315AbjEWOg5 (ORCPT + 99 others); Tue, 23 May 2023 10:36:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232969AbjEWOgz (ORCPT ); Tue, 23 May 2023 10:36:55 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2065.outbound.protection.outlook.com [40.107.93.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7332DE0 for ; Tue, 23 May 2023 07:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RZQJEbrQLzsxomB8Vv74XCfidS/5zhW18+1l0DlO1sPOriCVvZ2OfvgigLB3eiKkXv5h7eEdaeaGlSWouHKzDn0YumCYeInvLrKdrReAJidJteX40IPRENo6kPxTp/GbEsif8+cGXIC25qpOfdoCTLDi9/orrnDf/izm7gJdIoXC6/FJQn+pUkdQDDn2fhhCk8CQFinzxDDpq9B0DXYFAhXsUThnkJTbUf6Cc+5ikhnn2gtX9cEbsuxmO32G8moLs1i65f2Ta0xrbrCsodokkAUhfJuu7KUXbf/KlnS0XVOvDrOJsAVTMjS+78LdQbVK8V1r4di2GRqMQxg9eaTEGw== 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=FRBXrDPnExFzNFtiFrF5d/kagU00kAvj1SvIkoNHsXo=; b=bi2Ng20v5j8I2f57qSY2GXXTN8ia/H2fA3Jkt/1DiPe6JMGcsbRQbBMk06ucryYwuHJC7/diYgd5WSl4q6Ptcx9CUp+HWrAkdmZFIIjlGW50IOMVwko1Ta1dhFzxAwYN6iRW6jFNgX4E1uNX9OcAFTzoTG1F7xPr8kqOCk7ugkRwPGdrJPFY++t/mJyzdSeGm7hJB4t+7LAFGDHFcMPVrDlX6JPl8g+nVwP++yn1Bg1RdZ8Ad7P7V9zBoyyKE/2IvyfuZoDkluZjDbcqJGgzwf7uD/rRx57k645+VIwGpoi/SrqqezNIWu5M098o4QbQUC0R3x1BMBD1cUSAHtgm8A== 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=FRBXrDPnExFzNFtiFrF5d/kagU00kAvj1SvIkoNHsXo=; b=dIA5Xzsamtm68p+CTYKtCTVakaJnAJC6AEjkZmNxPyhNMjv7uznXeex8xfvhU1FSm6Sa5ylIPzQDPNKsKueDXhvZplkPDtNtq5VPqF/YEyg9TpDuKJ+1EqObL/wU0eskYBZ3fDFoxtM/uCYByfeGETPC/EWoSjIMHSm2BF2MAd8= 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 SN7PR12MB7370.namprd12.prod.outlook.com (2603:10b6:806:299::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.27; Tue, 23 May 2023 14:36:40 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1%7]) with mapi id 15.20.6411.028; Tue, 23 May 2023 14:36:39 +0000 Message-ID: <461a4c29-b60f-a2fc-390b-7a39c9cec451@amd.com> Date: Tue, 23 May 2023 10:36:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] drm/amd/display: remove unused variables res_create_maximus_funcs and debug_defaults_diags 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@gmail.com, daniel@ffwll.ch, qingqing.zhuo@amd.com, wenjing.liu@amd.com, aurabindo.pillai@amd.com, Samson.Tam@amd.com, gpiccoli@igalia.com Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230523114937.1080767-1-trix@redhat.com> Content-Language: en-US From: Hamza Mahfooz In-Reply-To: <20230523114937.1080767-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQZPR01CA0073.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:84::28) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|SN7PR12MB7370:EE_ X-MS-Office365-Filtering-Correlation-Id: c5ac19e4-53d0-4850-e54f-08db5b9b1e77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I1KomlQSqO4K31Zk7LNxVLSkJ6EJcpy7tNzvKl9hSMDIRWL2B+wuvsViE+3qO6d794aGWSx0gc/AHi6XUnzMTHXNSC9aaEv2Uuw42uY0sXoTlPoxj8z8E1/NLySKIK6GBpZ1eVS/D37/yeFSfesiCxmiZgBtj+DUB3u3MSja23NqWdeJq1v4mR417wbI0lF/3+D9PQtbig+e1nQa70H1LQUUp7CLgVrRM2GwHu4px/4lz/nBcs0zZC3Ir9/SMaYDwbjc3OfYZtXwWIagDsoKN2u1VPLWCQ4NC0nyo4bIVfpclReX4WOo4YV3hPgij6d/dRC7SIFg1IssVcUuVhWvovEq+aBvcfhkKlAgBcKZUuZTGT3wPtHyuiwi508nXv9/XaiC71xfHbqxwfSYs3nywzOiUOYmU8K4oX2WRwwU21ynUxqj81r87clIxmPqCdac/ovN+8wM7bdlugMWwIWZMtxuvd+F7fmWVvV+vPrMhfY0XsgpVPDJjgKh5TQwBEDWssPeWZYF/fSZBRrlu7P7IXRy0GSS4mVu1VLrQUlnvkPkH/ta6Qt0QKXu8FVYNuy06wYsiaBMb1Awe0lBt93dnYJ6LvwhIQz2j3LipUfEildVIq7O2PVdTpcXIcUi10BooLYdWFxeaw1JRgykOcDlx3lUjxvUwqDFHGQc1Qz9fb0= 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:(13230028)(4636009)(396003)(136003)(366004)(376002)(346002)(39860400002)(451199021)(6486002)(41300700001)(86362001)(31696002)(316002)(6666004)(2616005)(8936002)(8676002)(36756003)(186003)(53546011)(44832011)(26005)(6506007)(6512007)(5660300002)(2906002)(478600001)(31686004)(921005)(38100700002)(83380400001)(4326008)(66946007)(66476007)(66556008)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UXZ5UjFCV240N1cwNE80ek9KWlAreFRmU2hYOFBYc1M4aGhKVUlWTHRrZFpx?= =?utf-8?B?bFlNcS93aWhkanZBdDAzS3NiQ2dHbWt2Tmo3Q2c0VGdlY2NEZGZWRmYxN3Vh?= =?utf-8?B?UFdCYXh3enhNcW5wdTVwRHh2a3ZmTHJHT1ZOak0yN0x2bjZKY2VkbVRyb2hY?= =?utf-8?B?T201TE01NUZKbnlzanNIR2luSmd0eFRhR1NDNjExWmtOYnR3amhsNUkvSmll?= =?utf-8?B?RjRBV2NqSlJDc1ZLMkVWcTBnWHNPRTVUcytaeWV4aHZQUEw3ejBKUUl2ZUNR?= =?utf-8?B?MldSYzYzdUhKQ1BrejkrQUJ3dFN1Y25yQ2JZYXFTYnJ5TEIxODJ1OHNpVkNo?= =?utf-8?B?N2RJNTVueDdXL1FseTdPNDZHVmRuZ2ZnM3JPMnduSFN0SmdaYUFTeStUVmV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4-53d0-4850-e54f-08db5b9b1e77 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 14:36:39.5873 (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: tTKu7IS/WSWfqo8j0ym+2Ym8Ym/qriZ1SAg2HfaXDEt88V3kKdgWnl5YUakFuVq8jfNJxqjG2qy4WeKc44KLdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7370 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 5/23/23 07:49, Tom Rix wrote: > gcc with W=1 reports > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:1069:43: error: > ‘res_create_maximus_funcs’ defined but not used [-Werror=unused-const-variable=] > 1069 | static const struct resource_create_funcs res_create_maximus_funcs = { > | ^~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:727:38: error: > ‘debug_defaults_diags’ defined but not used [-Werror=unused-const-variable=] > 727 | static const struct dc_debug_options debug_defaults_diags = { > | ^~~~~~~~~~~~~~~~~~~~ > > These variables are not used so remove them. > > Signed-off-by: Tom Rix Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Applied, thanks! > --- > .../drm/amd/display/dc/dcn20/dcn20_resource.c | 23 ------------------- > 1 file changed, 23 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c > index 7dcae3183e07..6ef7e2634991 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c > @@ -724,22 +724,6 @@ static const struct dc_debug_options debug_defaults_drv = { > .underflow_assert_delay_us = 0xFFFFFFFF, > }; > > -static const struct dc_debug_options debug_defaults_diags = { > - .disable_dmcu = false, > - .force_abm_enable = false, > - .timing_trace = true, > - .clock_trace = true, > - .disable_dpp_power_gate = true, > - .disable_hubp_power_gate = true, > - .disable_clock_gate = true, > - .disable_pplib_clock_request = true, > - .disable_pplib_wm_range = true, > - .disable_stutter = true, > - .scl_reset_length10 = true, > - .underflow_assert_delay_us = 0xFFFFFFFF, > - .enable_tri_buf = true, > -}; > - > void dcn20_dpp_destroy(struct dpp **dpp) > { > kfree(TO_DCN20_DPP(*dpp)); > @@ -1066,13 +1050,6 @@ static const struct resource_create_funcs res_create_funcs = { > .create_hwseq = dcn20_hwseq_create, > }; > > -static const struct resource_create_funcs res_create_maximus_funcs = { > - .read_dce_straps = NULL, > - .create_audio = NULL, > - .create_stream_encoder = NULL, > - .create_hwseq = dcn20_hwseq_create, > -}; > - > static void dcn20_pp_smu_destroy(struct pp_smu_funcs **pp_smu); > > void dcn20_clock_source_destroy(struct clock_source **clk_src) -- Hamza