diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-10-28 21:34:36 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-28 11:19:17 -0400 |
commit | 4ef0b9d0a10eab55d36dc2f3ea316163c4addf8c (patch) | |
tree | 3283a4a7a56aaa464706b1d63ad22e29d55240b6 /drivers/gpu/drm | |
parent | 11436b01775fe9f07967756f52d5536bab45bcad (diff) |
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@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 |
1 files changed, 1 insertions, 1 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 70e601a975df..37698305a2dc 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; |