Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7980749rwn; Wed, 14 Sep 2022 07:17:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kjnj4oLi3ZDer2TtULOWlYHw0ht4CFy3x5bVW40VffDC/nhuaF8N03w8hCq3RJIevaDg7 X-Received: by 2002:a17:907:7284:b0:780:2b33:7f18 with SMTP id dt4-20020a170907728400b007802b337f18mr2921024ejc.620.1663165077800; Wed, 14 Sep 2022 07:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663165077; cv=none; d=google.com; s=arc-20160816; b=JryVG2INymyQeZAAMltvGXBKd3ARaNAaA4nWwI9JtfRbvr55tPMKqujPv3+bOZoEPD vK1oQmlHw73TFcTvP+Kre4jw1vNXQkTL/EkaF/Y+PYMM9VIBtM/Z0AoM5UmT2raxKLiQ fPcVIGHQI8MWJs3a4Rpwj4pPaLzlEjfFZlfiX96/FXwTVploR345zeAQt4h1QQuMFSHU /8lpdhSTeeh76fKPdSwNjVsa+WUX4nOiQUIvhJ/FnehqHaNpwKENs2ew77GQ1MxMdWdg E5EIl3r19iLtK1QxYCWZZlpHKrSY/jWC0JTl+Anrqm0qRfFKsDm01PVZ8R4H2IFIztoS Pd6w== 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=Nhf4NUE5pNrO2iPn+duWxF+/BKciVlA3AuEHtMu2CkM=; b=xJJF7Z4DQbSnB7wqcIh5MWMnTkj4cXmdxV7j8fohwg9WgzvdvZfMuczeIUNxuScP3d sFDoWpdgGaiOgAOgvZU2te/1vqt+Jt/uONCsdJ5j18gdH1hhThC9jIv2DV89kS9ye/2F UdIK1lRmsC97MeFe2ZjR6WCRMk32waqvo5YGkYH2RdUWnpopEirhQ19vy6bB7TLBoSIh 1Sz6ElUftjPqsQAYccvMKf75kt6sZLbsEI9h/AQPKjuojTxV/gnxd3y2MlTMv2Hqm9Qo hLLfx+xDg4CmOWR4Ai+BP1oxtX0SKWtqda+WNSM+2VWNJjS5kCQYNq0NQflQdorvG9x3 mktg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aLjXaqxm; 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 dd22-20020a1709069b9600b0077e7d991623si7286009ejc.109.2022.09.14.07.17.30; Wed, 14 Sep 2022 07:17:57 -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=aLjXaqxm; 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 S229931AbiINOB1 (ORCPT + 99 others); Wed, 14 Sep 2022 10:01:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbiINOAs (ORCPT ); Wed, 14 Sep 2022 10:00:48 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59EE879A4D for ; Wed, 14 Sep 2022 07:00:17 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-127dca21a7dso41143885fac.12 for ; Wed, 14 Sep 2022 07:00:17 -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=Nhf4NUE5pNrO2iPn+duWxF+/BKciVlA3AuEHtMu2CkM=; b=aLjXaqxm731w8pTsLIJqD/I2r3nY06kTldoBkhB+GTNaSahVvmr04XDUCNS2awKrsP 0sOo3DaKjjQXVYof4nLSJeFVwkH+VfffbTEjdfVu/wXmzrV9ILvlkVVe1s0QZC1QYHoT rPA4VzvgvpygZ9DEZiyMu7kayNhTLP9MI4j1Wv95mqAxL7OxrgJa0zaBrM+dbHIG0UCc dvsNAqvrRL8z++KlsXFsStXKaon9pqNvXrerCldvBwpOUKRXKKiore6NH93N6bRQHYiX dpqqPZwiI7zZs0dJ6/NGm7q5XJrHuqyiYsbNc/CHDsIP0XhnBA6xbEWLVF57nwToWoHV Nvgw== 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=Nhf4NUE5pNrO2iPn+duWxF+/BKciVlA3AuEHtMu2CkM=; b=7wF+ZjDViRKm0HKOgQqoLBepBnFYtbRjiaQkX/s5GfFlV01zBnzIHyNGio/D4B1nfT e5+CCy5faDgiRvVS0YS6yQQ29P+cgssix7DE0/qbbpjBaKr1OslhFS9YEPpkIDoCGPYd U6wGYS6/S4jE+mWZO/pdOznrJ+TQ6wsVB87SX4y/T+YEu48q2VyRvc5Z0oCit8XvsM5K 7hks2GsPwOTrZtO/BEhJOcomnyN68CF2l54cndnryqupUDlZeIfQEoM2ILUKqSsXO/db 26hqi1eNeeRIkO1en2/t6xnIocEpFzcJZIQmKP4JjpAhVVlbv/25eyhk93QG+/jOr5r7 jFbw== X-Gm-Message-State: ACgBeo0oSTkuiK0Ko8X12sgmjoSqeeMZqBYRgLbWKYhF4A2uiYvsGyml aOGlXmwZuixV0wfKCVBgYuTJaujh7GnuJusgbD4= X-Received: by 2002:a05:6870:1783:b0:12a:f442:504d with SMTP id r3-20020a056870178300b0012af442504dmr2643357oae.46.1663164016167; Wed, 14 Sep 2022 07:00:16 -0700 (PDT) MIME-Version: 1.0 References: <20220914052742.116297-1-jiapeng.chong@linux.alibaba.com> <20220914052742.116297-8-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220914052742.116297-8-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Wed, 14 Sep 2022 10:00:04 -0400 Message-ID: Subject: Re: [PATCH 8/8] drm/amd/display: make optc32_phantom_crtc_post_enable, optc32_setup_manual_trigger and optc32_set_drr static 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 Wed, Sep 14, 2022 at 1:29 AM Jiapeng Chong wrote: > > These three functions are not used outside the function > dcn32_optc.c, so the modification is defined as static. > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_optc.c:159:6: warnin= g: no previous prototype for function 'optc32_phantom_crtc_post_enable'. > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_optc.c:218:6: warnin= g: no previous prototype for =E2=80=98optc32_set_drr=E2=80=99. > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_optc.c:193:6: warnin= g: no previous prototype for =E2=80=98optc32_setup_manual_trigger=E2=80=99. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2140 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c b/drivers/= gpu/drm/amd/display/dc/dcn32/dcn32_optc.c > index 1fad7b48bd5b..ec3989d37086 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c > @@ -156,7 +156,7 @@ static bool optc32_disable_crtc(struct timing_generat= or *optc) > return true; > } > > -void optc32_phantom_crtc_post_enable(struct timing_generator *optc) > +static void optc32_phantom_crtc_post_enable(struct timing_generator *opt= c) > { > struct optc *optc1 =3D DCN10TG_FROM_TG(optc); > > @@ -190,7 +190,7 @@ static void optc32_set_odm_bypass(struct timing_gener= ator *optc, > optc1->opp_count =3D 1; > } > > -void optc32_setup_manual_trigger(struct timing_generator *optc) > +static void optc32_setup_manual_trigger(struct timing_generator *optc) > { > struct optc *optc1 =3D DCN10TG_FROM_TG(optc); > struct dc *dc =3D optc->ctx->dc; > @@ -215,7 +215,7 @@ void optc32_setup_manual_trigger(struct timing_genera= tor *optc) > } > } > > -void optc32_set_drr( > +static void optc32_set_drr( > struct timing_generator *optc, > const struct drr_params *params) > { > -- > 2.20.1.7.g153144c >