Subject: [PATCH 2/2] CPUFREQ: Use static or it won't compile if conservative and ondemand are set =y

From: Thomas Renninger <[email-masked]>
Date: Thu, 5 Feb 2009 11:18:29 +0100

Signed-off-by: Thomas Renninger <[email-masked]>
---
 drivers/cpufreq/cpufreq_conservative.c |    2 +-
 drivers/cpufreq/cpufreq_ondemand.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index 3aa99e6..8d541c6 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -60,7 +60,7 @@ static unsigned int def_sampling_rate;
  *   - MIN_STAT_SAMPLING_RATE
  * To avoid that userspace shoots itself.
 */
-unsigned int minimum_sampling_rate(void)
+static unsigned int minimum_sampling_rate(void)
 {
 	return max(def_sampling_rate / 10, MIN_STAT_SAMPLING_RATE);
 }
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index 3220749..338f428 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -58,7 +58,7 @@ static unsigned int def_sampling_rate;
  *   - MIN_STAT_SAMPLING_RATE
  * To avoid that userspace shoots itself.
 */
-unsigned int minimum_sampling_rate(void)
+static unsigned int minimum_sampling_rate(void)
 {
 	return max(def_sampling_rate / 10, MIN_STAT_SAMPLING_RATE);
 }
-- 
1.6.0.2