Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5224109rwd; Tue, 23 May 2023 21:11:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DnlFVHNMQY2Z4jEc9y+WTP6WXb/bxedVcVid11kzd1suy+vzJnD4UEhAMH5eXtiB5L8rs X-Received: by 2002:a05:6a20:12c1:b0:105:f8e4:7214 with SMTP id v1-20020a056a2012c100b00105f8e47214mr20091155pzg.42.1684901488150; Tue, 23 May 2023 21:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901488; cv=none; d=google.com; s=arc-20160816; b=pihE9h9bfjxREOprCmQi3Hr7dZ+gUEJJ/75gBfkDVCgljQnU5yOr4G7TCcwWoVmviH cWpCbjrLZO4RGjcZLL0hd4fe1k9M08H+ApYF+FLo0HkO5hrBUklibvjS4yglLOwufMuA WzAsjK//S+xH5dRKo7ZyscPk877F++xZcmjxZr9Kt5QOiLabJtPahk9dFcJ2LYZ+ftKW xYz/7lt1KzKVS5Mp5PIm5eJRMhXUoBUE7gbqI0+Ewwm/anvemwMq+ZKmAhwoVxy4EJz9 38RQB/csoVjtoFvv3zLJcWqXCA/uPr8QcEezIwtlpQp+SmmICYtnB1jke1WPTvpGjA/O bGuA== 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=sLWNoZ/4Pj9IVeeY6L1HeRrrwqzX2HyWV453b8BpvPs=; b=MpzDDNUZYdbhTYTLGBeEEIyb9FlDrLo3Z5OeitHiXMvZxwd3UV+SJrm/OYGLs+NdaE PK0CV82PscbEj3cl6EaKE8XT96CPH7qxYJzQZsUOanbYOgAgUmfnw+hjFQLa/NhfKmxs Ok2jboXyzDHBaTWic6I2RC1qdniOVLFMNEzVEEsBA9V5lUjpOenJBuBcIbwN8SqtgE6C 9WHfm1PzVzaOygzkNcV5wcVlc/3S6vXeOZPdj/UmqojqEFCmQZsCrIcWaB3CB/TKMoJT 0+w07znRxVBCtbsq5PwRhKmxD/KrZGv4ukv+sdbBYLD4xPeXYyISWQNvV++xS2FrPKw3 oZAQ== 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 e124-20020a636982000000b0053b9ebed2adsi1491527pgc.190.2023.05.23.21.11.15; Tue, 23 May 2023 21:11:28 -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 S239429AbjEXEAJ (ORCPT + 99 others); Wed, 24 May 2023 00:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239318AbjEXEAE (ORCPT ); Wed, 24 May 2023 00:00:04 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4762FE6 for ; Tue, 23 May 2023 21:00:03 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3Eg_1684900799; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3Eg_1684900799) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:00 +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 03/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:42 +0800 Message-Id: <20230524035952.123590-3-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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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/dcn30/dcn30_resource.c:1079:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:731: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 --- .../drm/amd/display/dc/dcn30/dcn30_resource.c | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c index cd94b5f5fdb4..f4ee4b3df596 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c @@ -728,24 +728,6 @@ static const struct dc_debug_options debug_defaults_drv = { .exit_idle_opt_for_cursor_updates = true }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, //No dmcu on DCN30 - .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, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1076,13 +1058,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn30_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 = dcn30_hwseq_create, -}; - static void dcn30_resource_destruct(struct dcn30_resource_pool *pool) { unsigned int i; -- 2.20.1.7.g153144c