From patchwork Wed May 24 03:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581734vqo; Tue, 23 May 2023 21:09:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ozdtZg5vX4fQrkDw1vBi8/nKWMrJ2rWdyxsnFT2/c5gyxXVo/awderZU/TX9kr0/jYqeT X-Received: by 2002:a17:90a:6484:b0:253:971b:dd1a with SMTP id h4-20020a17090a648400b00253971bdd1amr13318536pjj.9.1684901346151; Tue, 23 May 2023 21:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901346; cv=none; d=google.com; s=arc-20160816; b=TyozU3wB7KIWOTDqIS7ArkLqq7EAnKw7zsCMmN5o0ZdK08E8NIwMRFW3yESSXilKNs CQjXx3kDedl3hBWJWuEoiuWxSfJS3pmOvA4kPCU59qZeaVbuOFUWEe2WqH/ZBYfbJ6ua GlPIhnqSIHLNZdqlzlxUW1/Dq73GuAeOYNpvFDnllbAP9HaBU2GSzlblHlcYSAi45Nci wyjcrRA6kgjCaiYtKg46J0yZ9UT+BqA538IqIh825jaoBTpy9Otd3KnelYGPHGfIKvVc SoJC4VoA0h1dRlOq4JKhiNh6VN9v8kBaPAHHTTV7nk/al3UEL+t06K/8f06elCzB5W1/ Owqw== 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=S0T0fserPBz8BBa1f1RxoP0qBgXqJtrcHYYruUiWjvw=; b=iyjaKjfhXwcxD1SLZJ0vKBPaowo8ilKMf5AQl2tReikq2p3xN8jGq95JavI6rRBQmJ PpEVODtM936LI+UneKy6cT1DtyfMtyw9QbUfzAXUHyUNAfh7tn2h5jqSScEJaata7wQB DYZvq1Horf2F6xov/vceo+WPtLahnvVMwcmMSUaEQ3ZCbeaV0zkItSMK0n8LAp+imT5B RChEZkbHZpAPKSEcHQ+dLOR316WK32baOIfuE0HTeEpg83UtY7BXbjdjNNutwL1BHVHe NuG+gkg4AWUJnV9gNSNeYKFF0l/ZcDww0ptitUdPmBiYjA6/eAd8le3vmVi8ibcRRkDF Rw4g== 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.08.51; Tue, 23 May 2023 21:09:06 -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 S239510AbjEXEBI (ORCPT + 99 others); Wed, 24 May 2023 00:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239500AbjEXEAp (ORCPT ); Wed, 24 May 2023 00:00:45 -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 91359E78 for ; Tue, 23 May 2023 21:00:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3QC_1684900817; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3QC_1684900817) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:18 +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 13/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:52 +0800 Message-Id: <20230524035952.123590-13-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?1766747114092878910?= Eliminate the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_resource.c:899:43: warning: unused variable 'res_create_maximus_funcs' 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 --- drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c index 212c475d95cb..5ff09bf4bc30 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c @@ -896,13 +896,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn201_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 = dcn201_hwseq_create, -}; - static void dcn201_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src));