From patchwork Wed May 24 03:59:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580307vqo; Tue, 23 May 2023 21:04:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Vqp1U1wEqVgtsGhpwZoadLha7eA4FYfYqF6wBBaUKErKLTriP5s6jgBglfrZHLTI05mGm X-Received: by 2002:a05:6a00:190e:b0:64e:6862:8553 with SMTP id y14-20020a056a00190e00b0064e68628553mr1763046pfi.32.1684901082014; Tue, 23 May 2023 21:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901081; cv=none; d=google.com; s=arc-20160816; b=Dk9rNgoI6l67MvtcyxkTMkZ3LyQNJUfkBEvE3/70+RvOjO6uSy7Sa56J24kKgxXRqD kb6ihMMAbMMygrEX3HJLy7fkazo+9xPZZSQ2AXKBPRXg5pE3Q1ReyntdQGid/PDg7i6z vgWOICAZr16qvhLczwFkLjjSr2qVts0SmjCmGgKfdghGwAS8fBM5vD2w+cvqq4OuKo3y LL/+4qhOp36elUbAjiLwadNrKEyMPHIdJ/Sr99u/ASB3ayCp0xq4BOODcNaS2dYr5ovp wAlAb5qUp0a0bfoQRnN0VeCxucizO8HCZUzkOG9FZ18BIkyTAhPdBi//t+Ia7/YdRX0+ oEig== 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=gWeg22nkylE/ZUMhkOh84ey3+wJyTKYVnNcUe+t+oaY=; b=AbE1kSbH3FijOEq5mKSoxqbRPeQUwS1KtXB6/eHC7E0ZiuT9JWh1hK65Cj7kKVfTB8 S24sqap1q1M24edRH+tjHE0ckAdbEtK5e/xDYFAve0UY4ZehTvS7PMjCnmBKYxwaTI77 DPQWYE02GVZ0si/toIOgjdtZElQcZW1gVGGEKqKiUstLFcn+wt0Ggg6+JYQ6KPxoYi+r TyRwWAbSHKFfO1vDUm6i785WomOjr+rCPelP+8tegx4yCQcR0gtRJnOgFnzwrtWvfIJo kQ7eaQOjDrf5Iy7xIDhqsKoow/kILeGBksBn+hUdT06tfpungiK0KuIwz/dGt2cy22O3 35vw== 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 z19-20020a63e113000000b00520dfb861fbsi445261pgh.416.2023.05.23.21.04.28; Tue, 23 May 2023 21:04:41 -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 S239407AbjEXEAq (ORCPT + 99 others); Wed, 24 May 2023 00:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239447AbjEXEAj (ORCPT ); Wed, 24 May 2023 00:00:39 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC53E47 for ; Tue, 23 May 2023 21:00:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3M1_1684900810; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3M1_1684900810) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:11 +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 09/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:48 +0800 Message-Id: <20230524035952.123590-9-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?1766746836646081735?= Eliminate the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:1390: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/dcn314/dcn314_resource.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c index 2483d37e425d..3592efcc7fae 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c @@ -1387,15 +1387,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn314_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 = dcn314_hwseq_create, -}; - static void dcn314_resource_destruct(struct dcn314_resource_pool *pool) { unsigned int i;