From patchwork Wed May 24 03:59:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98275 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580100vqo; Tue, 23 May 2023 21:04:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5h4Kf7vevJnLftwr9bbP2xRcjr56eU8ib7cDyTuErIaOilTVKuQl0fzxSrfERzJPCjbM5b X-Received: by 2002:a17:90a:bc86:b0:255:4cae:9b30 with SMTP id x6-20020a17090abc8600b002554cae9b30mr10228415pjr.5.1684901051773; Tue, 23 May 2023 21:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901051; cv=none; d=google.com; s=arc-20160816; b=semuL4hUoQFrrxzCy8OXmzy8YW61EHnMObuuf3JR6assKBfHamzG1DihKIEeRLAHqP EdrQeH1MzyWuzC+Qg9sBghg3/67Z1HcbPpqfO28Q9MMcrHdc8yvZfAAXsDFoKuyI41ZG 91MhUiQxJBS0hUTxpK3wCH2LkySTzYnrgnvpEY98c9TqN/n53EbBnuu4Y+pXt7t/njff O4je6w2DlNPP40Ks7FExYHnaeqASTe+Jh5bNaTR91gSGKKvv7w8j1OFa/kfcsO0rF4Eh UawObAg4a86l8nx4dHgiCVaFUk9tFMQclu9qMe+ZsqB/SFUoFYONcCnFuACYQ9aXlAsc YGqA== 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=mmUbcX8jPQvQL4o6zuwcbVNASH2GPPsVTp8pFcY6re4=; b=ijhCSFY57Km3Zh+I2Zkjr/IjDIiDbe92qHh1oKc1NkkbJcjzo3VCVQ2vRmrTX5ea8g EXxzWgyHBZ/IKz/GV/uhL8v1SVbCiUi/Fe5ak6Cxu0kZMOe4aOYoJPvoHj3AcQttMdzm wvRTHQZBRi0H/pHXJenZkxPg0Bgpf/Dv9HhEG6KZ+1NAqep3RBc8gZrGhla2QR72dis3 /G2HMRoXcoaqsEO3WA2xbW0FngjphNBw8DfWp5CWGxeut8KB4KeqLeohQid2mbUGr7Ew wFHiQ3AEs5OaV3Xgyj02UoII1JGRXmjYSEqn+N4+xiaaNZv2FBEHO8K8/CQsCLwi86Vx SlLA== 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 c22-20020a17090a109600b002475bc0a186si526789pja.69.2023.05.23.21.03.55; Tue, 23 May 2023 21:04:11 -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 S239441AbjEXEAY (ORCPT + 99 others); Wed, 24 May 2023 00:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239425AbjEXEAI (ORCPT ); Wed, 24 May 2023 00:00:08 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204D1119 for ; Tue, 23 May 2023 21:00:06 -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_---0VjMa8F5_1684900803; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8F5_1684900803) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:04 +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 05/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:44 +0800 Message-Id: <20230524035952.123590-5-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,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?1766746805046569028?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1360:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:737: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/dcn32/dcn32_resource.c | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c index 33abc8c9d4be..2e6b39fe2613 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c @@ -734,26 +734,6 @@ static const struct dc_debug_options debug_defaults_drv = { .fpo_vactive_max_blank_us = 1000, }; -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_dsc_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, - .force_disable_subvp = true -}; - static struct dce_aux *dcn32_aux_engine_create( struct dc_context *ctx, uint32_t inst) @@ -1357,15 +1337,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn32_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn32_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn32_hpo_dp_link_encoder_create, - .create_hwseq = dcn32_hwseq_create, -}; - static void dcn32_resource_destruct(struct dcn32_resource_pool *pool) { unsigned int i;