Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7503089rwn; Tue, 13 Sep 2022 22:56:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR7onTwE/1vQE4plBUiv4vUnZnE1iyqqpWEwxPjrtwM/j+Ybo06wkPFCDIJUyV6X5BPS4I3m X-Received: by 2002:a17:907:728d:b0:77e:1942:f772 with SMTP id dt13-20020a170907728d00b0077e1942f772mr8537821ejc.222.1663135007452; Tue, 13 Sep 2022 22:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663135007; cv=none; d=google.com; s=arc-20160816; b=wIAYdhnvKexpxbfRhrvWp+8RxrQg9CVobZCpcz6LCDCAtQz/oKTFonaMQFfNUJqmAg TYrTUTv+wjBmpG1SUS6X9Bs34T5bxdOM09AVKnVCxZ3Df+v9pO8beJ3jSXlEvQHGWZJ4 ukYesPEMRIl60+L3r3pGp+ql7TN8QI8bmOVKdmPlZrCAqr2I+SLt4GKO4Jkrcqcf2Utz 7bGq3wZo1tUiEiy8vallpzF+3OAGwCyeRuQypfrepoNbxLvSdvybi2DWPhGEXdbjJSlG eGLbii54I31HVzC/qLNltOOsxByobMEem1ETtgaXEZRjDbr3NAL1zRyDl6y93S8yKGWp HqTA== 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=aANQK26/5Iot/N+lD3ezAQcHE6yOvDEsMFivgvl754k=; b=L9hNSHZpthJbBtpFg94S8dLP8K5KfcnRg9xM2pGrWObaHiZzTSahwpQgRdqo11J+zY BUs9k/BjRavgF5iRDn0V/+Im7uE8knVqJRgFV/UUVx2IqEXhEuAwbOClX0cK7Svv228a 0Kj3NCu+pISmzLUgtwAatumTyNW1oFj2dvvb+pEkDfAvF4rCnx9gJ2+J66YQPRlnf7Cy Kbnj4UISLdRY1havbMLasnBBt1S+fjzG6enptrFgAtdJoFBc15NLS8ntq03dRFKwY59v WEQI+S1DzdbOgKJVyR4tW1s278yvfHD+GGf1ItZ2B3SGD1HHU3aHwvETqGAUj4nIkV2L vyRg== 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 l14-20020aa7c3ce000000b0044eba28fe51si9930484edr.279.2022.09.13.22.56.21; Tue, 13 Sep 2022 22:56: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 S229876AbiINF3K (ORCPT + 99 others); Wed, 14 Sep 2022 01:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiINF26 (ORCPT ); Wed, 14 Sep 2022 01:28:58 -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 109356D54C for ; Tue, 13 Sep 2022 22:28:39 -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=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPlj1Sf_1663133297; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPlj1Sf_1663133297) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 13:28:19 +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 7/8] drm/amd/display: make some functions static Date: Wed, 14 Sep 2022 13:27:41 +0800 Message-Id: <20220914052742.116297-7-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,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_dccg.c, so the modification is defined as static. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dccg.c:257:6: warning: no previous prototype for ‘dccg32_otg_drop_pixel’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dccg.c:248:6: warning: no previous prototype for ‘dccg32_otg_add_pixel’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dccg.c:211:6: warning: no previous prototype for ‘dccg32_set_dpstreamclk’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dccg.c:136:6: warning: no previous prototype for ‘dccg32_set_dtbclk_dto’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2142 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c index 0d5e8a441512..26eb04ea472c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c @@ -133,7 +133,7 @@ static void dccg32_set_dtbclk_p_src( } /* Controls the generation of pixel valid for OTG in (OTG -> HPO case) */ -void dccg32_set_dtbclk_dto( +static void dccg32_set_dtbclk_dto( struct dccg *dccg, const struct dtbclk_dto_params *params) { @@ -208,7 +208,7 @@ static void dccg32_get_dccg_ref_freq(struct dccg *dccg, return; } -void dccg32_set_dpstreamclk( +static void dccg32_set_dpstreamclk( struct dccg *dccg, enum streamclk_source src, int otg_inst, @@ -245,7 +245,7 @@ void dccg32_set_dpstreamclk( } } -void dccg32_otg_add_pixel(struct dccg *dccg, +static void dccg32_otg_add_pixel(struct dccg *dccg, uint32_t otg_inst) { struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); @@ -254,7 +254,7 @@ void dccg32_otg_add_pixel(struct dccg *dccg, OTG_ADD_PIXEL[otg_inst], 1); } -void dccg32_otg_drop_pixel(struct dccg *dccg, +static void dccg32_otg_drop_pixel(struct dccg *dccg, uint32_t otg_inst) { struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); -- 2.20.1.7.g153144c