drm/amd/display: set variable dccg314_init storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Sat, 15 Apr 2023 15:17:22 +0000 (11:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:51 +0000 (16:28 -0400)
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>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c

index 6f879265ad9c79f2c0508eda996d93416a117c18..de7bfba2c179802b70f214a1e96b75946ce23847 100644 (file)
@@ -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;