From patchwork Wed May 24 03:59:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98284 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581824vqo; Tue, 23 May 2023 21:09:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Zx+N3dyltbgU85YUlUZsMpVDMrVtpONUfzbbNjAJ+wN2sOX+Tx2btxtSUHgAuzY/nUxyH X-Received: by 2002:a05:6a21:329f:b0:10b:c48:5456 with SMTP id yt31-20020a056a21329f00b0010b0c485456mr13603564pzb.0.1684901358166; Tue, 23 May 2023 21:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901358; cv=none; d=google.com; s=arc-20160816; b=nr0p0jje0oYneZyesaeU7IBVDwz6qscfyZKMrGxMhz2uvDZ8YoIxHW3voGGjtIrGlq WVMVUL4t2di+waP1SFvXAyCKHCRSjRn7fVynMLG6hn0cMvq5chdAmXP6w1IxNgk+AN7L U0tUX+yguZlkjTl1ZvVdd3HnVCOdlv/T5dAKXiUiUG3YeE2PRQuYdrmCCQk6v++G3K5D PuOy8fTxRqHFrkdR4zvEZrBEjau7N36HhfrPcefBPcxdv/VfH8mEJ/FAr3MFaW6FVt/J TY29I8utEERITkH+k+ps9Jk3fIzVLQPevZwVmW+bIFu/N060UEk5Fo1TvR6Bsmvc2y66 pTPw== 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 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.09.04; Tue, 23 May 2023 21:09:18 -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 S239502AbjEXEBD (ORCPT + 99 others); Wed, 24 May 2023 00:01:03 -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 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?1766747126561958651?= 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;