Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6321263rwn; Tue, 13 Sep 2022 02:24:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR58M8Wqdl/+fVWkcWDzVOjJFThJREkTb+D90WwvsDPKTzYgVwLEX+urlgF62e4/SHTc7DlP X-Received: by 2002:aa7:d341:0:b0:44e:67f1:5a2d with SMTP id m1-20020aa7d341000000b0044e67f15a2dmr26398917edr.175.1663061043668; Tue, 13 Sep 2022 02:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663061043; cv=none; d=google.com; s=arc-20160816; b=mREZb3EAmD/7g3gDj5N9Tom9jsBHvKTWVUFuSOh00YbU01RYDI12CxczC1+SLEIwHK ePdIcjhdxbKIBhbxhZJxSiAkjTg4sw0BN9m121U6ON0ySt/EHYDo/FWWI/9my30fppbv a+JgxO/8iKLaFFDJM6l02zKBHyDO1wRissirQiCEq3IxHCRmNjpKoMf1WDv3HX979qXp pv/3jEa7HV7FPMWZ6tqz3AiC4uYfgTcxlCQSDmZRAiisU/PlcXb2kzrjqw8MIW4CFJs1 TR5arFp5qIuRD+sh4f/F1u+efRnLuubzDx222pZjBdYT0mH5vRRqA8LFnbVYCGAVQk7L Pd5A== 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=cuNCXt5QlmKFQnzoeWNlQpWeoduylP17C1J8YIM8vaw=; b=vlxrfcQ1j5roOIbId0B7SGrp1w+5C00K85JP6QWv2GFAm6yz0UYkMIKrfbygGqPcrj YVkRf3P+XHyUZ8TOp13lnQpyHQ9WNbLrlXTEddOKVgzMamWPwIMb16chlv7lmicKDWQ2 RqIEugqdEa6RVVzexDZRHL9k2RyXREL43FdlhIdDJuvU/OS/QPjHdDpqEXfH3nOnreRe 5+FBvp+hqW15k5RDRrGUrUk2ISVBb/pP62kfJTMhRwq2DoVRf7G3pnhhIosNd1BT0rR4 /bLgYbjDuQlD5dre3fBiVtzz4FiNMhwbkUhSZFJbMzK5h3VfXjJHIqiwile+NQf+jsCO 4FCA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr26-20020a1709073f9a00b0077c2c9f4d49si6664137ejc.451.2022.09.13.02.23.38; Tue, 13 Sep 2022 02:24:03 -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 S231416AbiIMIi6 (ORCPT + 99 others); Tue, 13 Sep 2022 04:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbiIMIis (ORCPT ); Tue, 13 Sep 2022 04:38:48 -0400 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4764A5AA0A for ; Tue, 13 Sep 2022 01:38:45 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPem1pz_1663058320; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPem1pz_1663058320) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 16:38:42 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 5/5] drm/amd/display: Remove the unused function copy_stream_update_to_stream() Date: Tue, 13 Sep 2022 16:38:05 +0800 Message-Id: <20220913083805.22549-5-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> References: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 previous prototype for ‘dc_reset_state’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2113 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/amd/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