Skip to content

Commit 988bfa0

Browse files
Jinjie Ruanalexdeucher
authored andcommitted
drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c:6853:56: warning: symbol 'core_dcn4_g6_temp_read_blackout_table' was not declared. Should it be static? This symbol is not used outside of dml2_core_dcn4_calcs.c, so marks it static. And not want to change it, so mark it const. Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 40318a2 commit 988bfa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6887,7 +6887,8 @@ struct dml2_core_internal_g6_temp_read_blackouts_table {
68876887
} entries[DML_MAX_CLK_TABLE_SIZE];
68886888
};
68896889

6890-
struct dml2_core_internal_g6_temp_read_blackouts_table core_dcn4_g6_temp_read_blackout_table = {
6890+
static const struct dml2_core_internal_g6_temp_read_blackouts_table
6891+
core_dcn4_g6_temp_read_blackout_table = {
68916892
.entries = {
68926893
{
68936894
.uclk_khz = 96000,

0 commit comments

Comments
 (0)