Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp426933pxb; Thu, 14 Jan 2021 09:10:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwG12dXF8MxQ5pdgXMjRMCKIGwZCfZCc3QsHxmtGpmMi/sRy/ciRT0Q1hCIBCEwUxy+GbmK X-Received: by 2002:a17:906:1958:: with SMTP id b24mr2008495eje.263.1610644245967; Thu, 14 Jan 2021 09:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610644245; cv=none; d=google.com; s=arc-20160816; b=xJdgzVVUgyFf91D0nWv5pxRYbKNen3upX2cDXOTlD4Vh9fpXtqyckz7DO6Gw1CESnA oxn6R48nvYHzqixrGGLd/R+OrfURuNngTGsFBrvHRzgL9mUz5bdt0cS+bQ2SyzrwlOfK JqRokcCaPYb9t7GEU0giox2drwZ+KZUEpE4A78z4pRidsTr8fY1Q+V2MAIv3ZMQ2RWe9 C2C4b6cRiHGEVs/Wm6HzYXHjbz9Ynxw6kXoq9vai9xI7vA+S8X2HuoGj4s/pl5OgQlTG t0CdlOAIlGJesls8cfjFkojrk2wOo6e23UPQ31pfKMcpBdKmJUftJWrURO599fIpLkEQ D1fQ== 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=7486gkH3QYVYP1H7a3/P8S4AjfVYRwRaV8aYoWWDGU4=; b=zrvn47xOmoUyBE+5tkreSHQBiG3JFFkLmxAVSEHJ69GTZ+5CGRxvDI+Muq9n4f3bNI 0Pj51Aj2ll+0Z9YGBrgv9VhdmCupS1ckQhyRxgqIiG6i8B1T1UJznDEAsuSi7jnO+cee uroxAQ9SCn6Ki8EOip9t4OVI08MelWY9GINpf4jbISmFgHPEWKgb9gAHyMOk9XpLr9HD PWID4UrAu1cIJ22CcKAuRMLdyVuLI+TJa/YOZ8470ymMJblT6RhrBgTe7rymJvdkzVPO KUwd/piUyBhbZXrpF1jWXeqmx/7NTsxaIO86niLTKPCe73RLsRr1HoYi6t7HLtgixagY Yf5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UPXqgGLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si2884043eji.645.2021.01.14.09.10.20; Thu, 14 Jan 2021 09:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UPXqgGLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726275AbhANRI2 (ORCPT + 99 others); Thu, 14 Jan 2021 12:08:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbhANRIZ (ORCPT ); Thu, 14 Jan 2021 12:08:25 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4F58C061574 for ; Thu, 14 Jan 2021 09:07:44 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id s75so6637404oih.1 for ; Thu, 14 Jan 2021 09:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7486gkH3QYVYP1H7a3/P8S4AjfVYRwRaV8aYoWWDGU4=; b=UPXqgGLLhjZHqaA/0z5zTaUcyuLGro//8Cc4RYeqs1kp31Mr5SuL1TDokyXoCeyUyV vuPwMN3/mfHoKebzVSGpnd/5HNB//w2TsPSdtzA+Fc02kg2h42pQQlwviKRESqehT/x9 svv+ThIMiglBFXfm2+NAED1J4zWGfvsWC2mc1iWRSz+u4iwxeXLuinLe+6wYzv4ZzohF vzXSHAYwbRB2Uq7bXFKCrIQaJ7wtx29MlqE/+hefnvbjCEKoOHGFdx5RTW5Se7ra+XyZ UtTxWju6k73K1lqGiGw3W1OmQiQISI7jtuDTTvFL7oW7T9jtCPsGiwa0QSvqxmREPcqC l2dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7486gkH3QYVYP1H7a3/P8S4AjfVYRwRaV8aYoWWDGU4=; b=My/HM4+K4wqsnUExzeWwNocFfsAk5eeyGqYiGUorF+UL8MRCT5dOwN9N8GcqtC3f3M BnsEbbyYCQJOv8iWRa/4BP5dRs3ydmJzcBEcLzf4aF2gz6P35+WFGEmjwcanHxAOO4NE 4FFl29nsTz0+7FiN7qG5y6EErnWF1wRedPXEvuLc/aOhyNjIsGiF6LZQeSRCg8mhxj/D UDL78U8OTs8zMttUz7cNZOS+SjEk364H5Nu5KMWBheLntI1GKAsB9RE6U7UhTkS7n34U Zdyh7aSyALwvlqdrtlDeQp8XUUu7vYJopZn8jJR8FqhK0uwXw6ZPNoJXFR+6M1/DyYOH l+1w== X-Gm-Message-State: AOAM532akeffVq9xyJpsxz8/JGz+VejnyvtzyzIE0hB9xHh9ThCY0Ihu WR8I4yaNseabG8RJJWPPQu6kwRUqSPR4/xc9htU= X-Received: by 2002:a54:4083:: with SMTP id i3mr3107195oii.120.1610644064266; Thu, 14 Jan 2021 09:07:44 -0800 (PST) MIME-Version: 1.0 References: <20210113080752.1003793-1-lee.jones@linaro.org> <20210113080752.1003793-7-lee.jones@linaro.org> In-Reply-To: <20210113080752.1003793-7-lee.jones@linaro.org> From: Alex Deucher Date: Thu, 14 Jan 2021 12:07:33 -0500 Message-ID: Subject: Re: [PATCH 06/30] drm/amd/display/dc/core/dc_resource: Staticify local functions To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 3:08 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1120:5: warn= ing: no previous prototype for =E2=80=98shift_border_left_to_dst=E2=80=99 [= -Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1131:6: warn= ing: no previous prototype for =E2=80=98restore_border_left_from_dst=E2=80= =99 [-Wmissing-prototypes] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/= gpu/drm/amd/display/dc/core/dc_resource.c > index 07c22556480be..d423092c45dcd 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > @@ -1117,7 +1117,7 @@ static void calculate_inits_and_adj_vp(struct pipe_= ctx *pipe_ctx) > * We also need to make sure pipe_ctx->plane_res.scl_data.h_active uses = the > * original h_border_left value in its calculation. > */ > -int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) > +static int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) > { > int store_h_border_left =3D pipe_ctx->stream->timing.h_border_lef= t; > > @@ -1128,8 +1128,8 @@ int shift_border_left_to_dst(struct pipe_ctx *pipe_= ctx) > return store_h_border_left; > } > > -void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, > - int store_h_border_left) > +static void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, > + int store_h_border_left) > { > pipe_ctx->stream->dst.x -=3D store_h_border_left; > pipe_ctx->stream->timing.h_border_left =3D store_h_border_left; > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel