Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6564951rwn; Tue, 13 Sep 2022 06:10:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR4iKyy4KhAAgunyGl8zNYk9IyXensh2rQ/LXee5FkZLw+LbSqGhItNGEfp0poD6Hbq5B7/P X-Received: by 2002:a17:907:743:b0:740:ef93:2ffc with SMTP id xc3-20020a170907074300b00740ef932ffcmr22632821ejb.514.1663074639505; Tue, 13 Sep 2022 06:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663074639; cv=none; d=google.com; s=arc-20160816; b=LyoOLAA/aNw5GcJrSS+3LimOC5Zm19c9WB1hRuJvNPfk/adZyDm9XQdHlamiXMg7/A YwCFK75H6G0Z5vE8WumFjDqo+l/ew74Y/Cteiuvm1IUQ5R25gJmBQT+xJVLLNnekcrZn KQiYEoHvzGm3GRKpDlb4OraQju91v/iChq0qXNOFGY+MV0ovZRdGSFEW6ymhzzqh8ZAi x0+BhN2r/6nzjMQDQVwDsgqkd06lv9+eruX56UB7HNzBnqQbvww8d88eMkzHwCfJ0dte gqTc59yQZn5EaR+YiCmt3sY+aIMkLEbp832Zr7Ss9yfLkYF2+a14ytP57JH6vzARNYd/ 6A7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Egq3TEXftTCJHVvcDfROaTHHjIMkOHhmY4MYJgUqpWQ=; b=ZNgFbJPR/zSNLPpouBF7mn+MxYp+jQVHvNdLXi0Xi9uPLwYfaYfiq39di51e5utoRc Tf9Mu4vQ6E/5PEnHdg3Vnh52re1qqknE07M1a3/TZ+gO+JQvCtLlpuviGtt5mBCP8cKg J7Oo5tDywLLYvFAfmHZ0/s11OxmVpGtGKc1XGjRk5tH6bnTI8PLme1Dd+/GAhsaVesTU AuS3YxWopNk20yMBu3w9Tu6mBjiMaHC2tko69ZX952wnORIayYCHOMigDYA0zNRqXaPv +DMhWguH4VqSPU005BODXNrDz48hlCGt5QlrWTMnM02T30UvBKevcnNW8LmJMdhg0R6F 7VNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IkYoOc4w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga4-20020a1709070c0400b00731468ef97esi11177116ejc.31.2022.09.13.06.10.01; Tue, 13 Sep 2022 06:10:39 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IkYoOc4w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbiIMNBi (ORCPT + 99 others); Tue, 13 Sep 2022 09:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231247AbiIMNBh (ORCPT ); Tue, 13 Sep 2022 09:01:37 -0400 Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDB42228C for ; Tue, 13 Sep 2022 06:01:36 -0700 (PDT) Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-12b542cb1d3so22091599fac.13 for ; Tue, 13 Sep 2022 06:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=Egq3TEXftTCJHVvcDfROaTHHjIMkOHhmY4MYJgUqpWQ=; b=IkYoOc4wWT22pJ9fC+4oRYo0mk+0Jkg6ujt7YjIOFF1VBj7HNkFGvXg2n19hopxdH1 ioQg9GrPo1NMvYUVtbvmYyF9uDwDFCkxzZHiaXDuGszuvGbwCpPu/blKETycs3jTEjY3 NZu1aPRoNYlrkJ0E48Kglav5q3KbstekWQtfjLv5JL4F1a1Y93yMsy7fXYoH0umdQv+R +CP2Biq3F6XRW3mog4/A1qA1bcd96tQuwWJM0laeT+s9BjSeGLVozIAQZbm/ifctH7H0 fJ31YaMEpT+XuFsJQM4TkVYZy0dzT+5+RKn1Ia/Oa+cIoecUP3MsurqMRNbLAgwKQl+7 0q/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=Egq3TEXftTCJHVvcDfROaTHHjIMkOHhmY4MYJgUqpWQ=; b=ZjEO981rWZCG1st5kFRiQCJ/uW0PvH/9cpe/dT/8N5JdruijqakxUqR4VDed20UjRX kgfHVxYt2I867q7XE9s5kzeH2eLBb3Ggj8m3U+DrBYKbteKrLh89lBmSf+nLpzvYbRHO OAplbL/5FdznXvTNtY07b3y3/vwRUI+c7mKfGBKSCzPWYAkswX8bv79ZLwMdhFyYdhvi n7AftFHITFd8YPFfB40m73PDdcBqBRRum/P6vqJY/JdLr8Fiw4nFB5jeaf8XG6R0Bfgp rIYWIiclFZDrys67WPg6Zp0szic0Tn/4D/Avur3eY8V2BiWLyN3B3vYbgC41/wg5OlVT Clgg== X-Gm-Message-State: ACgBeo2K3n6Dv9eA2YE4azfu92n/igwu2ljQ1LYOGLjVESg3Il/Zad96 wYsbjL/NZXfBryK5WHDCEQ9RCaTa4MSIxSZkUks= X-Received: by 2002:a05:6870:738d:b0:125:1b5:420f with SMTP id z13-20020a056870738d00b0012501b5420fmr1711917oam.96.1663074094492; Tue, 13 Sep 2022 06:01:34 -0700 (PDT) MIME-Version: 1.0 References: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> <20220913083805.22549-5-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220913083805.22549-5-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Tue, 13 Sep 2022 09:01:23 -0400 Message-ID: Subject: Re: [PATCH 5/5] drm/amd/display: Remove the unused function copy_stream_update_to_stream() To: Jiapeng Chong Cc: alexander.deucher@amd.com, airlied@linux.ie, Xinhui.Pan@amd.com, Abaci Robot , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, christian.koenig@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Applied the series. Thanks! Alex On Tue, Sep 13, 2022 at 4:39 AM Jiapeng Chong wrote: > > The function copy_stream_update_to_stream() is defined in the notif.c > file, but not called elsewhere, so delete this unused function. > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2852:6: warning: no pr= evious prototype for =E2=80=98dc_reset_state=E2=80=99. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2113 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/display/dc/core/dc.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/a= md/display/dc/core/dc.c > index 9860bf38c547..2ee0b5a2ce62 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c > @@ -2849,16 +2849,6 @@ static void copy_stream_update_to_stream(struct dc= *dc, > } > } > > -void dc_reset_state(struct dc *dc, struct dc_state *context) > -{ > - dc_resource_state_destruct(context); > - > - /* clear the structure, but don't reset the reference count */ > - memset(context, 0, offsetof(struct dc_state, refcount)); > - > - init_state(dc, context); > -} > - > static bool update_planes_and_stream_state(struct dc *dc, > struct dc_surface_update *srf_updates, int surface_count, > struct dc_stream_state *stream, > -- > 2.20.1.7.g153144c >