Skip to content

Commit 2845f51

Browse files
Jinjie Ruanalexdeucher
authored andcommitted
drm/amd/display: Make dcn401_dsc_funcs static
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dcn401/dcn401_dsc.c:30:24: warning: symbol 'dcn401_dsc_funcs' was not declared. Should it be static? This symbol is not used outside of dcn401_dsc.c, so marks it static. Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 570867e commit 2845f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static void dsc401_disconnect(struct display_stream_compressor *dsc);
2727
static void dsc401_wait_disconnect_pending_clear(struct display_stream_compressor *dsc);
2828
static void dsc401_get_enc_caps(struct dsc_enc_caps *dsc_enc_caps, int pixel_clock_100Hz);
2929

30-
const struct dsc_funcs dcn401_dsc_funcs = {
30+
static const struct dsc_funcs dcn401_dsc_funcs = {
3131
.dsc_get_enc_caps = dsc401_get_enc_caps,
3232
.dsc_read_state = dsc401_read_state,
3333
.dsc_validate_stream = dsc401_validate_stream,

0 commit comments

Comments
 (0)