Skip to content

Commit 0e40539

Browse files
Jinjie Ruanalexdeucher
authored andcommitted
drm/amd/display: Make core_dcn4_ip_caps_base static
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c:12:28: warning: symbol 'core_dcn4_ip_caps_base' was not declared. Should it be static? This symbol is not used outside of dcn35_hubp.c, so marks it static. And do 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 988bfa0 commit 0e40539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "dml2_debug.h"
1010
#include "lib_float_math.h"
1111

12-
struct dml2_core_ip_params core_dcn4_ip_caps_base = {
12+
static const struct dml2_core_ip_params core_dcn4_ip_caps_base = {
1313
// Hardcoded values for DCN3x
1414
.vblank_nom_default_us = 668,
1515
.remote_iommu_outstanding_translations = 256,

0 commit comments

Comments
 (0)