Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5218063rwd; Tue, 23 May 2023 21:03:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XYYgNiZGdqYDKeVl4e84Xzh/YsAK7GXvbJBmBUk+hAExB/pA4OhuQzIEFwOtEu5rwD2Jp X-Received: by 2002:a05:6a20:6a14:b0:103:883b:10c1 with SMTP id p20-20020a056a206a1400b00103883b10c1mr16106039pzk.41.1684901012336; Tue, 23 May 2023 21:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901012; cv=none; d=google.com; s=arc-20160816; b=qMZHV7DkZZW5H7dBS4e0NnnOj9rc2jJTkr6ikiJFNsJOsTvhEMNG7RWDnT/oCgg7uT gRnUTo+6NNOrw3yQpCSUbC9Pk3un0SY5uwSxpi/tP3vuuQa9IlxNHFoT2hK6pSjb9atj zyp0SXjkk63uk058z8EA7jb1aDMqRf7VsWInexghMjG61SLKwqr0TFIB+6l8FwtlnLsh Hhy8/2F2E+roPC0J5VydG5TPh3N2PCQD/fLYKayP84HvgvoQAS6pts+jrdsE6MbR3/md jIlmakse/DVLLhpaLD4cRophzOiqgSvnwkEeI9kxdMHvXy/O75Nr0AELAhBz8gGO1feH O7LQ== 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=p9hmT1Urks4xliUNkp63TLswHPifdPtD0/SaykeRsm0=; b=0kYPk+uTF0NVzDY2NHLSZZ01VmMtLRPMpgedCovBoW8KM7UVihdPCx3pog0ny8OSAs +sBUlY2Ll/h8RbR5BzWgdqVvb4moo9fFscTvE47ewvC2ntom97FfwvZgaCBVlNFqz3+7 Fcs6gyKRQqz92QmZSZx30arWx3KWgRmfPjyLoxtl+K0q8RTFwytLJNCStN9RCQ9ru/aV rQ9a9qn9xW+avzdJc3QBz9xD4oh1Je4OeJTVO0iQFtDQiWLOKiPSRdh7Ql2Mnomh0yH2 RUbKL3nJ1RKgXcliLUHn7rwIh3aznizMr/EQYQbVBNvNKBosNPnWT1B0D1zI6lCLSzXo n5Ng== 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 q23-20020a637517000000b00535d72b6cfasi7567376pgc.731.2023.05.23.21.03.18; Tue, 23 May 2023 21:03:32 -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 S239498AbjEXEBC (ORCPT + 99 others); Wed, 24 May 2023 00:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239494AbjEXEAo (ORCPT ); Wed, 24 May 2023 00:00:44 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31EC2E6E for ; Tue, 23 May 2023 21:00:19 -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=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMVrSC_1684900815; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMVrSC_1684900815) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:16 +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 12/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:51 +0800 Message-Id: <20230524035952.123590-12-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,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/dcn321/dcn321_resource.c:1346:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn321/dcn321_resource.c:735: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/dcn321/dcn321_resource.c | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c index af0bb3e94250..bbcd3579fea6 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c @@ -732,27 +732,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 *dcn321_aux_engine_create( struct dc_context *ctx, uint32_t inst) @@ -1343,15 +1322,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn321_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 = dcn321_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn321_hpo_dp_link_encoder_create, - .create_hwseq = dcn321_hwseq_create, -}; - static void dcn321_resource_destruct(struct dcn321_resource_pool *pool) { unsigned int i; -- 2.20.1.7.g153144c