From patchwork Wed May 24 03:59:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2579540vqo; Tue, 23 May 2023 21:02:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72CNtuIhOZb2Qg2yElx6X1O7W+pc3o/HoJgOB1shc9qYwkxm+BNrSxoYTCDev0cKg8DgSc X-Received: by 2002:a17:903:2584:b0:1ab:d6f:51b0 with SMTP id jb4-20020a170903258400b001ab0d6f51b0mr16761200plb.18.1684900965623; Tue, 23 May 2023 21:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684900965; cv=none; d=google.com; s=arc-20160816; b=NkKXT4F4PKwOYyDCCXf1t3/6Q7yMP4tVEAPPhbFJv4Wo5pTcN+0ulxO5ycVE4+kWnT rzdKajZaN2TiiMEbbaYg/QUtjNwbFuq324ZyiZsZfk9WF9E7Ts2PoGWKJlOo7HHy8dq2 hTcK8m83hb5OV/rrsTnd/pqXGx8EV2gVBAnVhkLUuBdRCSCY2byi8z+XhOfkExWirmNc aDTN3Wpooy5HdJRn+SNe0nhl7lWb2GD94IWCvGU1Blpzrswu/sYKhK67RcqXDG9iCeew 9tW+RywBUdBrtAeAKpl8hH50xssJxF5Fw3zEsJ2G1FWdu70MgDszw2VjkJsz9zZi7f6O r74g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a170902d49200b001a9ba4690casi3498511plg.295.2023.05.23.21.02.30; Tue, 23 May 2023 21:02:45 -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 S239432AbjEXEAK (ORCPT + 99 others); Wed, 24 May 2023 00:00:10 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746714940045342?= 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;