[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191028133436.30608-1-yuehaibing@huawei.com>
Date: Mon, 28 Oct 2019 21:34:36 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <harry.wentland@....com>, <sunpeng.li@....com>,
<alexander.deucher@....com>, <christian.koenig@....com>,
<David1.Zhou@....com>, <airlied@...ux.ie>, <daniel@...ll.ch>,
<Bhawanpreet.Lakha@....com>, <Dmytro.Laktyushkin@....com>,
<charlene.liu@....com>, <eric.bernstein@....com>,
<Jun.Lei@....com>, <Anthony.Koo@....com>, <Reza.Amini@....com>,
<Harmanprit.Tatla@....com>
CC: <amd-gfx@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] drm/amd/display: Make calculate_integer_scaling static
Fix sparse warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:963:6:
warning: symbol 'calculate_integer_scaling' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 70e601a..3769830 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -960,7 +960,7 @@ static bool are_rects_integer_multiples(struct rect src, struct rect dest)
return false;
}
-void calculate_integer_scaling(struct pipe_ctx *pipe_ctx)
+static void calculate_integer_scaling(struct pipe_ctx *pipe_ctx)
{
if (!pipe_ctx->plane_state->scaling_quality.integer_scaling)
return;
--
2.7.4
Powered by blists - more mailing lists