Skip to content

Commit 2ed7def

Browse files
Lee JonesSasha Levin
authored andcommitted
drm/amd/display/dc/core/dc_resource: Staticify local functions
[ Upstream commit c88855f ] Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1120:5: warning: no previous prototype for ‘shift_border_left_to_dst’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1131:6: warning: no previous prototype for ‘restore_border_left_from_dst’ [-Wmissing-prototypes] Cc: Harry Wentland <harry.wentland@amd.com> Cc: Leo Li <sunpeng.li@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Stable-dep-of: 374c9fa ("drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 219bb43 commit 2ed7def

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/amd/display/dc/core/dc_resource.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ static void calculate_inits_and_adj_vp(struct pipe_ctx *pipe_ctx)
11081108
* We also need to make sure pipe_ctx->plane_res.scl_data.h_active uses the
11091109
* original h_border_left value in its calculation.
11101110
*/
1111-
int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx)
1111+
static int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx)
11121112
{
11131113
int store_h_border_left = pipe_ctx->stream->timing.h_border_left;
11141114

@@ -1119,8 +1119,8 @@ int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx)
11191119
return store_h_border_left;
11201120
}
11211121

1122-
void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx,
1123-
int store_h_border_left)
1122+
static void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx,
1123+
int store_h_border_left)
11241124
{
11251125
pipe_ctx->stream->dst.x -= store_h_border_left;
11261126
pipe_ctx->stream->timing.h_border_left = store_h_border_left;

0 commit comments

Comments
 (0)