summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn314
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-04-15 11:17:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-04-18 16:28:51 -0400
commit0c1f033159712b3d071cfe4a3ec0f36f1914453b (patch)
treeec458ebae09cd192207f1138ecdd626c5ff3f4ac /drivers/gpu/drm/amd/display/dc/dcn314
parent64626c0ee13257e330bc09fa6a169385c0eaf9ca (diff)
downloadlinux-stable-0c1f033159712b3d071cfe4a3ec0f36f1914453b.tar.gz
linux-stable-0c1f033159712b3d071cfe4a3ec0f36f1914453b.tar.bz2
linux-stable-0c1f033159712b3d071cfe4a3ec0f36f1914453b.zip
drm/amd/display: set variable dccg314_init storage-class-specifier to static
smatch reports drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:277:6: warning: symbol 'dccg314_init' was not declared. Should it be static? This variable is only used in one file so should be static. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn314')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c
index 6f879265ad9c..de7bfba2c179 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c
@@ -274,7 +274,7 @@ static void dccg314_set_dpstreamclk(
}
}
-void dccg314_init(struct dccg *dccg)
+static void dccg314_init(struct dccg *dccg)
{
int otg_inst;