Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ruanjinjie@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jinjie Ruan and committed by
Alex Deucher
570867ef 0e405395

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
··· 188 188 hubp35_program_pixel_format(hubp, format); 189 189 } 190 190 191 - struct hubp_funcs dcn35_hubp_funcs = { 191 + static struct hubp_funcs dcn35_hubp_funcs = { 192 192 .hubp_enable_tripleBuffer = hubp2_enable_triplebuffer, 193 193 .hubp_is_triplebuffer_enabled = hubp2_is_triplebuffer_enabled, 194 194 .hubp_program_surface_flip_and_addr = hubp3_program_surface_flip_and_addr,