Skip to content

Commit 570867e

Browse files
Jinjie Ruanalexdeucher
authored andcommitted
drm/amd/display: Make dcn35_hubp_funcs static
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/hubp/dcn35/dcn35_hubp.c:191:19: warning: symbol 'dcn35_hubp_funcs' was not declared. Should it be static? This symbol is not used outside of dcn35_hubp.c, so marks it static. Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0e40539 commit 570867e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void hubp35_program_surface_config(
188188
hubp35_program_pixel_format(hubp, format);
189189
}
190190

191-
struct hubp_funcs dcn35_hubp_funcs = {
191+
static struct hubp_funcs dcn35_hubp_funcs = {
192192
.hubp_enable_tripleBuffer = hubp2_enable_triplebuffer,
193193
.hubp_is_triplebuffer_enabled = hubp2_is_triplebuffer_enabled,
194194
.hubp_program_surface_flip_and_addr = hubp3_program_surface_flip_and_addr,

0 commit comments

Comments
 (0)