Commit 9714d357 authored by Tom Rix's avatar Tom Rix Committed by Alex Deucher

drm/radeon: change cac_weights_* to static

Sparse reports these issues
si_dpm.c:332:26: warning: symbol 'cac_weights_pitcairn' was not declared. Should it be static?
si_dpm.c:1088:26: warning: symbol 'cac_weights_oland' was not declared. Should it be static?

Both of these variables are only used in si_dpm.c.  Single file variables
should be static, so change their storage-class specifiers to static.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 790d8e8e
...@@ -329,7 +329,7 @@ static const struct si_dte_data dte_data_malta = ...@@ -329,7 +329,7 @@ static const struct si_dte_data dte_data_malta =
true true
}; };
struct si_cac_config_reg cac_weights_pitcairn[] = static struct si_cac_config_reg cac_weights_pitcairn[] =
{ {
{ 0x0, 0x0000ffff, 0, 0x8a, SISLANDS_CACCONFIG_CGIND }, { 0x0, 0x0000ffff, 0, 0x8a, SISLANDS_CACCONFIG_CGIND },
{ 0x0, 0xffff0000, 16, 0x0, SISLANDS_CACCONFIG_CGIND }, { 0x0, 0xffff0000, 16, 0x0, SISLANDS_CACCONFIG_CGIND },
...@@ -1085,7 +1085,7 @@ static const struct si_dte_data dte_data_venus_pro = ...@@ -1085,7 +1085,7 @@ static const struct si_dte_data dte_data_venus_pro =
true true
}; };
struct si_cac_config_reg cac_weights_oland[] = static struct si_cac_config_reg cac_weights_oland[] =
{ {
{ 0x0, 0x0000ffff, 0, 0x82, SISLANDS_CACCONFIG_CGIND }, { 0x0, 0x0000ffff, 0, 0x82, SISLANDS_CACCONFIG_CGIND },
{ 0x0, 0xffff0000, 16, 0x4F, SISLANDS_CACCONFIG_CGIND }, { 0x0, 0xffff0000, 16, 0x4F, SISLANDS_CACCONFIG_CGIND },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment