Skip to content

Commit

Permalink
drm/amd/display: set variable dccg314_init storage-class-specifier to…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Tom Rix authored and Alex Deucher committed Apr 18, 2023
1 parent 64626c0 commit 0c1f033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0c1f033

Please sign in to comment.