Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5217600rwd; Tue, 23 May 2023 21:02:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44C1SBlTBWQIzooq5dS32FOQQLjESOSXlSeQr4gOW/GYTcpshQT3bS9/jVslTlEyp9a9Hp X-Received: by 2002:a05:6a00:22c2:b0:64c:c5f9:1533 with SMTP id f2-20020a056a0022c200b0064cc5f91533mr1916377pfj.33.1684900977737; Tue, 23 May 2023 21:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684900977; cv=none; d=google.com; s=arc-20160816; b=rA0AL3jfQBPv2kMVb0sP6jD5b4HjJL3bmiKAJBlA64YOm6zgA/rCjzKdin36cSeuvz 33tDpJml3eKhTpyu3hv5+N3lwaGgvSNG0yLAXNV/gnRHrAYnWlESDavqm47ADnFo1HA8 QheESEoa3XWpVzTz2X4ZgdU6ZK/t7VnpNCRjlsGGDG29aEbP6KvoHp2qKuEDWAeGUm7e /ngUcufOCZWF0belR87+2W8qQh0UNuVGmt3e68zH8lgyCr7dfohwy1kFn31wg7GpOLrL bQJJ1uJdj/c3INzQuApDO+8JJaoGNV3MTJurdoy+0CLlUCxZYSzXP0jdy9pxegFm2PKF PsdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QtiYOiTaoJF2+PTqiSuNYMWYJEUlPUTEJ3PnWKuZimM=; b=C9Raq9ZipbjnMvK0vreY/VrLtFPwq4NWNbSblZEk8eCQjzkllyY1xCAqWXq/Ds6KPm 9F76bEIsS1iSvN9eFwAlPzzoq1YuKil9whqXC+A/IoMbWDuxiFNbG8tzWCXegQEx8Wq/ iPpXZFEae2kpE25ADuOAwvtI5g/p+rcE7FjoSFCR473VAqGR/Zmrfl+EYd+h5lfJvpN5 K0RBLxGXgWokGPYV3sxLGH18pfmjMdqCZvyQXwQHeWqdUwnFJtzVvLSSzlsrQFAKcRqj ckSAzktyhzFB3K3PToy9Faa59QEwCdw/KxsE/XaJeBi0kGUGC/pA47EZu9TElz3LKYBa bK4A== 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 a189-20020a624dc6000000b0064d5e97d4acsi5714125pfb.346.2023.05.23.21.02.43; Tue, 23 May 2023 21:02:57 -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 S239462AbjEXEAm (ORCPT + 99 others); Wed, 24 May 2023 00:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239443AbjEXEAe (ORCPT ); Wed, 24 May 2023 00:00:34 -0400 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA5A1B5 for ; Tue, 23 May 2023 21:00:14 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMa8J0_1684900809; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8J0_1684900809) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:09 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@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, Yang Li , Abaci Robot Subject: [PATCH -next 08/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:47 +0800 Message-Id: <20230524035952.123590-8-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, 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 Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_resource.c:884:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_resource.c:84:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn303/dcn303_resource.c | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c index fcd126602178..f35514188a5c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c @@ -81,23 +81,6 @@ static const struct dc_debug_options debug_defaults_drv = { .disable_idle_power_optimizations = false, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .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 = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -881,13 +864,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn303_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 = dcn303_hwseq_create, -}; - static bool is_soc_bounding_box_valid(struct dc *dc) { uint32_t hw_internal_rev = dc->ctx->asic_id.hw_internal_rev; -- 2.20.1.7.g153144c