aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/intel_pstate.c
diff options
context:
space:
mode:
authorDirk Brandewie <dirk.j.brandewie@intel.com>2013-10-30 11:38:32 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-30 19:11:08 -0400
commite0a261a207fb5bcbc6cc5db3b51a96d9cbe9b97e (patch)
treeeff13313075c31cdf92565e7bd907d61a27251b8 /drivers/cpufreq/intel_pstate.c
parent45cac118ffd7c9920b3d85bf551c2205674eb4f2 (diff)
cpufreq/intel_pstate: Add static declarations to internal functions
Fixes warnings reported by kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/cpufreq/intel_pstate.c:729:6: sparse: symbol 'copy_pid_params' was not declared. Should it be static? drivers/cpufreq/intel_pstate.c:739:6: sparse: symbol 'copy_cpu_funcs' was not declared. Should it be static? Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r--drivers/cpufreq/intel_pstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 27c2753909fe..81e0062a6d2a 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -761,7 +761,7 @@ static int intel_pstate_msrs_not_valid(void)
761 return 0; 761 return 0;
762} 762}
763 763
764void copy_pid_params(struct pstate_adjust_policy *policy) 764static void copy_pid_params(struct pstate_adjust_policy *policy)
765{ 765{
766 pid_params.sample_rate_ms = policy->sample_rate_ms; 766 pid_params.sample_rate_ms = policy->sample_rate_ms;
767 pid_params.p_gain_pct = policy->p_gain_pct; 767 pid_params.p_gain_pct = policy->p_gain_pct;
@@ -771,7 +771,7 @@ void copy_pid_params(struct pstate_adjust_policy *policy)
771 pid_params.setpoint = policy->setpoint; 771 pid_params.setpoint = policy->setpoint;
772} 772}
773 773
774void copy_cpu_funcs(struct pstate_funcs *funcs) 774static void copy_cpu_funcs(struct pstate_funcs *funcs)
775{ 775{
776 pstate_funcs.get_max = funcs->get_max; 776 pstate_funcs.get_max = funcs->get_max;
777 pstate_funcs.get_min = funcs->get_min; 777 pstate_funcs.get_min = funcs->get_min;