Commit 11fa52fe authored by Tom Rix's avatar Tom Rix Committed by Rafael J. Wysocki

cpufreq: amd-pstate: Make varaiable mode_state_machine static

smatch reports
drivers/cpufreq/amd-pstate.c:907:25: warning: symbol
  'mode_state_machine' was not declared. Should it be static?

This variable is only used in one file so it should be static.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarWyes Karny <wyes.karny@amd.com>
Tested-by: default avatarWyes Karny <wyes.karny@amd.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
[ rjw: Subject edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a038895e
...@@ -905,7 +905,7 @@ static int amd_pstate_change_driver_mode(int mode) ...@@ -905,7 +905,7 @@ static int amd_pstate_change_driver_mode(int mode)
return 0; return 0;
} }
cppc_mode_transition_fn mode_state_machine[AMD_PSTATE_MAX][AMD_PSTATE_MAX] = { static cppc_mode_transition_fn mode_state_machine[AMD_PSTATE_MAX][AMD_PSTATE_MAX] = {
[AMD_PSTATE_DISABLE] = { [AMD_PSTATE_DISABLE] = {
[AMD_PSTATE_DISABLE] = NULL, [AMD_PSTATE_DISABLE] = NULL,
[AMD_PSTATE_PASSIVE] = amd_pstate_register_driver, [AMD_PSTATE_PASSIVE] = amd_pstate_register_driver,
......
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