From patchwork Wed May 24 03:59:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580354vqo; Tue, 23 May 2023 21:04:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EJpvxc/TuVIsOfj7AHlNIzNyZineZyN4w5mUuxm4KV2qe9BRhpYcWvVOMRS2l188ELrb9 X-Received: by 2002:a17:90a:1b6c:b0:250:ce6a:cf1a with SMTP id q99-20020a17090a1b6c00b00250ce6acf1amr15357062pjq.38.1684901089561; Tue, 23 May 2023 21:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901089; cv=none; d=google.com; s=arc-20160816; b=W7EOmTLn+TpdtIDRGAtzCAlsKhy6d5pJ9nmELwsoeAQ0GIFQ1mviiau6DgeXSMk4dW clfCRyB9DmwUA1w349bopo2kHU4tVRo721lRQE5/49bTWjrlFCHDluZ3DbO6dba/9HKz 9YQGzsRdXKstYQTqVUFhR2CgkPxexUt7STyKxhV8OmBWD6nGLgOxk6mGbgOs2lOc5tAL 2Al1ig3oAdMdq23cmVBRPQmp242zkpIRyvcq+XZ7gqoZ5EpLCT+mh9zDIQ5l9SBA2P9e vvQt5aigMV6iv5mgc6KZPKLqEfSPSUzKTGYqt2wljIjA1SsUfIc0+f50LLWpHAqzzFAa ivsw== 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=vyZ+TCBOl36d50nEca9ATBS3SvIh0FvE6tY8vC3ZTis=; b=d0oKSzl0BgmgjDa0WUg71GSaBjGTRXl3T3qYZflhZ3ypSZ9I+GV4pW+Q96B3FXg2Vf mVaAs68USBrmYmaXgWYmhoQcZ3bGj51H9baw2rHKwQZf7vWP9alwlp4xXH14ZT0hUzHK Huu2uL2XkZG39CaNi39h8KAT8rxL6WQRn+M9Bf3u5qVl1BRTmr4pLjim6SVTxbHJ7Jnn e3lyuLiW4haXG4OvHwGBu/uNtTILtz+Gg28+BSxHGfhtdN27kBgGnNIOIa3nUy9aCvVE 6xGK65LB7bI+M2FUHpzNw5p7p4I+aTvsIY2qWQQgnUzFriGtA41thMvy8C2ABYDDieu9 OznQ== 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 t6-20020a17090abc4600b00252e51a9fbasi524141pjv.122.2023.05.23.21.04.33; Tue, 23 May 2023 21:04:49 -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 S239477AbjEXEAs (ORCPT + 99 others); Wed, 24 May 2023 00:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239455AbjEXEAk (ORCPT ); Wed, 24 May 2023 00:00:40 -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 3D444E50 for ; Tue, 23 May 2023 21:00:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;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_---0VjMWCLX_1684900812; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMWCLX_1684900812) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:13 +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 10/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:49 +0800 Message-Id: <20230524035952.123590-10-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?1766746844756990095?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.c:1357:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.c:893: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/dcn315/dcn315_resource.c | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c index e6d87c162d26..cb95e978417b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c @@ -890,24 +890,6 @@ static const struct dc_debug_options debug_defaults_drv = { .psr_power_use_phy_fsm = 0, }; -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_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, @@ -1354,15 +1336,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn31_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 = dcn31_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn31_hpo_dp_link_encoder_create, - .create_hwseq = dcn31_hwseq_create, -}; - static void dcn315_resource_destruct(struct dcn315_resource_pool *pool) { unsigned int i;