Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6288576rwn; Tue, 13 Sep 2022 01:45:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5iIIaieouH8nR8XzeWzanHJtWKhF4fHS9HI4xLqUNOFDD1tEb6hdiXtsGg9PqPh3Cjj+JE X-Received: by 2002:a17:907:60d3:b0:77e:5e9b:8ec with SMTP id hv19-20020a17090760d300b0077e5e9b08ecmr4956356ejc.640.1663058752710; Tue, 13 Sep 2022 01:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663058752; cv=none; d=google.com; s=arc-20160816; b=WADIC/nYyrMQLbq66QkatMOfjPp0CnSLf3bD7O9cExmyv3/hLcWLB4GXLOi1vi1AdZ DJjowQVCNtktdFaufrBlCiu+mcv27mI0RgTNjcUt/JpENxjXwfQr7+Bk33nsQ41nspaV 2YDiJg+b04LqF+V3BJ3NF+ixEP16kf3AWpdFi/CjfwYp6U+T2TR5lFS65nznHH4o98f8 DU2viwVrPYCBRPWwW7lKcXdKRZCyzha0RDQTWAZJ7L98txiI5XwoYdsiytCoJc2HJjDL //0omy6TVWKw++AW0In4oGkKtBIImEkK9GWUYaYt1VdsoUGx5w86D/oa//bFQ2hzGEOt 48/g== 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=llVR8D6Lx+jwHmZMBqPdarvPAvtRLJBRLvVpNA7toxo=; b=efu3WVwGBXAT+QLQP8RLoISRyjmdMv7k/9f7PtObw7sc1gVtYp1L7+RHYm9KanDLXS z4242sd8kdYBS8OgpcdYlX1WgmVk+gxrxLu3VT4Nlx4NHhdmYIB1G10/op+FNER/TPoq gCGH452zMTFBMgbSpZ/wu3ZmRamA6feWMzetZ0Pn0ckaqSWDyOnnXxCXqdI2rFwEtMvW A9JxdiOqTuIVcdpt2ZYN9/bppcQguEB/nAdMAXD6WwKt/WL7IH7Bw4xy4CTLeIejU2EN HAUgWxv/vbppnj9Oeg8LzMpSVpNwiCScBCwe0n/uzT6T9Ffvbw1sICvr9++R8Jw5Tx8R kBUw== 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 hv13-20020a17090760cd00b0077a0529e045si8051809ejc.218.2022.09.13.01.45.26; Tue, 13 Sep 2022 01:45:52 -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 S231146AbiIMIif (ORCPT + 99 others); Tue, 13 Sep 2022 04:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbiIMIid (ORCPT ); Tue, 13 Sep 2022 04:38:33 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A27145B070 for ; Tue, 13 Sep 2022 01:38:31 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPf2T1G_1663058305; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPf2T1G_1663058305) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 16:38:27 +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 2/5] drm/amd/display: make dscl32_calc_lb_num_partitions static Date: Tue, 13 Sep 2022 16:38:02 +0800 Message-Id: <20220913083805.22549-2-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,RCVD_IN_MSPIKE_H2, 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 This symbol is not used outside of dcn32_dpp.c, so marks it static. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dpp.c:34:6: warning: no previous prototype for ‘dscl32_calc_lb_num_partitions’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2118 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dpp.c index f349cbe2a0f0..dcf12a0b031c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dpp.c @@ -31,7 +31,7 @@ #include "dcn30/dcn30_cm_common.h" /* Compute the maximum number of lines that we can fit in the line buffer */ -void dscl32_calc_lb_num_partitions( +static void dscl32_calc_lb_num_partitions( const struct scaler_data *scl_data, enum lb_memory_config lb_config, int *num_part_y, -- 2.20.1.7.g153144c