Message ID | 20230524035952.123590-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2579537vqo; Tue, 23 May 2023 21:02:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6aFyNlMldiPeSFfe+Wn9JI0K0OtXsSVoHGadC6P8BxTzCUouH6AwgOYhpS7zgV4dKtPe9I X-Received: by 2002:a05:6a21:9998:b0:10a:a0e1:96fa with SMTP id ve24-20020a056a21999800b0010aa0e196famr15457509pzb.22.1684900964923; Tue, 23 May 2023 21:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684900964; cv=none; d=google.com; s=arc-20160816; b=P8JzFoiaSc/QW7oGg9vm9rO/L5tmzVr8aHbnAiWw4LygzGsUbHcel3+9SSuqeVN9sk VQgCR47xvrFwoAZQBWUIQqRYaQWYpuI0ZdLuZxH7BQRJx6A4ZYCFMvNOubVPVwRL92i+ vJB2Qn2doGYk3rFULvURVClXAdhpA78hZ87/+xB8z04vXB9XdnBpLm9zX7aRqTyQ5U7M 8G1ufZxNxLmh26Hadh8KtoWw4lj+2ToLqYOZjveilZSh4VLKolE2aPbvezt1p4IMsN4w rksbkyIh+FMEBl7btWPMxMbOTDEMvIrmK5x6/DLrXtNUHfESccQnxuQEsLzHRAa+Ycau lMPQ== 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 :message-id:date:subject:cc:to:from; bh=kDhZxwV91oO2ZX4B2p4vltdUa0h+GUXQhGiyWo5xg2M=; b=ECaR4f4AEh2f23PwFb4j7hCGqlKUyXgo/sjuQ/ObLvc3WoS33wCFCLrvZf1lwpjzj6 U3K9VvL9w1kB2/qUlekL1OAoytQ5AMFt9j1ucmJBaoLNc1sBez59dOtkU8mIJyM8PZaM Wf278OWlQzlQgIHGnh0N2fFtoDDCUtvZnpPJ5tZh+wf0SIMu2Opwz+7chdLCU81DcI1q PpWZUYu5BYAPTgucGHx5mLceh0wC7kcGDXSmPL8tk/RVDR1igaJG5WNXkQLbckpbmFqo PmlebiKby5VfczERL6HTUvpr5jcGGuveCRV10Qf0d1QcTc7Yk/T9e7oVeVxUoDJN98wc kUYg== 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 s15-20020a63af4f000000b0052c885da611si3633324pgo.152.2023.05.23.21.02.30; Tue, 23 May 2023 21:02:44 -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 S231316AbjEXEAC (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Wed, 24 May 2023 00:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234369AbjEXEAB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2023 00:00:01 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661ABC1 for <linux-kernel@vger.kernel.org>; Tue, 23 May 2023 20:59:59 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMWC9b_1684900794; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMWC9b_1684900794) by smtp.aliyun-inc.com; Wed, 24 May 2023 11:59:55 +0800 From: Yang Li <yang.lee@linux.alibaba.com> 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 <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next 01/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:40 +0800 Message-Id: <20230524035952.123590-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c 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: <linux-kernel.vger.kernel.org> 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?1766746714419232333?= |
Series |
[-next,01/13] drm/amd/display: remove unused definition
|
|
Commit Message
Yang Li
May 24, 2023, 3:59 a.m. UTC
Eliminate the following warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c:889:43: warning: unused variable 'res_create_maximus_funcs'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
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 <yang.lee@linux.alibaba.com>
---
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 7 -------
1 file changed, 7 deletions(-)
Comments
On 5/23/23 23:59, Yang Li wrote: > Eliminate the following warning: > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c:889:43: warning: unused variable 'res_create_maximus_funcs' > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > 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 <yang.lee@linux.alibaba.com> I have applied the series, thanks! > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c > index a0625209c86d..26ddf73fd5b1 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c > @@ -886,13 +886,6 @@ static const struct resource_create_funcs res_create_funcs = { > .create_hwseq = dcn10_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 = dcn10_hwseq_create, > -}; > - > static void dcn10_clock_source_destroy(struct clock_source **clk_src) > { > kfree(TO_DCE110_CLK_SRC(*clk_src));
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c index a0625209c86d..26ddf73fd5b1 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c @@ -886,13 +886,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn10_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 = dcn10_hwseq_create, -}; - static void dcn10_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src));