Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7516064rwn; Tue, 13 Sep 2022 23:12:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5cH6hYDfo16QtfrZ4jPDeSe3ujIESUCiRBg5eHsDlAC6ee/xoGHI+yqp8/zGy4jnYDVJD9 X-Received: by 2002:a17:903:1205:b0:171:4f8d:22a8 with SMTP id l5-20020a170903120500b001714f8d22a8mr34738871plh.11.1663135967378; Tue, 13 Sep 2022 23:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663135967; cv=none; d=google.com; s=arc-20160816; b=Me/1bOoApJC/sDoH3ARgB6R3rlagLnkGXS1w2WJHj2Dq1w82MZpaYt/u1V3oOaZ8dQ X9ZsrgiRLBhJLy9oPhy8K1c4G09fplio+4oiI2+w9zPPBfIRbc5WX8fToG8MPHzMaXyL QmXaGZiBnoc0Y8VF7houFUKkCu3c8SuFKQzKOm+GYRL0w8P7i/UqDaojD+xH772qhNpJ MXIvbVL24ww5fD42dMTNYkqqQF13RKX6IGfiLalGnZN8/0qA2bZoQM9NRTS7yKQpOWHQ vGrj7yBnltSwVlG6yN+/YDf+L8XqcV/ZuLT0N7Mjp3OF39gTv4J4LVzls9dK2c/e1omN poHw== 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=hy3Js1oTNQCkfxvPAmQ9djGa2R4zaJc2Vr66NRSPqIs=; b=X5cCG3xl1eWkP32bZv3l7w4fcCoCDGrMppXfcZgVsoV7jc3ooVXGWHc1nsw2FmV3Mc 887x2NRyeMs3KL2THGO2HcvoTY36w4xrWoqf6RwIL1NlqkaMoEJ6FFepJzqOZIeA9FRi jonGG70sb2wd5EmWe03TCAeJn0kjqbtYxZQ9wmFpEBfiurKCj/zNlLoLNFz8fq4bWygH Af4H3PFf0pkKKAJnFvbkXlIEFhpYa7Ps3QrNrgtPMCiy/Z89c6+L51JhphOL3IqV2Pks zl8M0VlWosGk7XOoIlo9eOr79WJDklkpX63f5jdctzn6K7oUMTzy35X/feQTeepy7Sz4 u73A== 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 i63-20020a639d42000000b0042be4a45941si15005291pgd.518.2022.09.13.23.12.35; Tue, 13 Sep 2022 23:12:47 -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 S229812AbiINF2R (ORCPT + 99 others); Wed, 14 Sep 2022 01:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbiINF2Q (ORCPT ); Wed, 14 Sep 2022 01:28:16 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883E06C75A for ; Tue, 13 Sep 2022 22:28:08 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;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_---0VPlk9J-_1663133283; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPlk9J-_1663133283) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 13:28:05 +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 4/8] drm/amd/display: make some functions static Date: Wed, 14 Sep 2022 13:27:38 +0800 Message-Id: <20220914052742.116297-4-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220914052742.116297-1-jiapeng.chong@linux.alibaba.com> References: <20220914052742.116297-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 These functions are not used outside the file dcn32_hubbub.c, so the modification is defined as static. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:223:6: warning: no previous prototype for ‘dccg314_set_valid_pixel_rate’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:184:6: warning: no previous prototype for ‘dccg314_set_dpstreamclk’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:140:6: warning: no previous prototype for ‘dccg314_set_dtbclk_dto’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2144 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c index 232cc15979dd..36630d532c18 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c +++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c @@ -137,7 +137,7 @@ static void dccg314_set_dtbclk_p_src( } /* Controls the generation of pixel valid for OTG in (OTG -> HPO case) */ -void dccg314_set_dtbclk_dto( +static void dccg314_set_dtbclk_dto( struct dccg *dccg, const struct dtbclk_dto_params *params) { @@ -181,7 +181,7 @@ void dccg314_set_dtbclk_dto( } } -void dccg314_set_dpstreamclk( +static void dccg314_set_dpstreamclk( struct dccg *dccg, enum streamclk_source src, int otg_inst, @@ -220,7 +220,7 @@ void dccg314_set_dpstreamclk( } } -void dccg314_set_valid_pixel_rate( +static void dccg314_set_valid_pixel_rate( struct dccg *dccg, int ref_dtbclk_khz, int otg_inst, -- 2.20.1.7.g153144c