public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse•de>
To: davej@redhat•com, sfr@canb•auug.org.au,
	linux-next@vger•kernel.org, cpufreq@vger•kernel.org
Cc: Thomas Renninger <trenn@suse•de>
Subject: [PATCH 2/2] CPUFREQ: Use static or it won't compile if conservative and ondemand are set =y
Date: Thu,  5 Feb 2009 11:18:29 +0100	[thread overview]
Message-ID: <1233829109-23358-3-git-send-email-trenn@suse.de> (raw)
In-Reply-To: <1233829109-23358-1-git-send-email-trenn@suse.de>

Signed-off-by: Thomas Renninger <trenn@suse•de>
---
 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

      parent reply	other threads:[~2009-02-05 10:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 10:18 On top fixes for my last patches Thomas Renninger
2009-02-05 10:18 ` [PATCH 1/2] CPUFREQ: powernow-k8: Forgot to use printk instead of WARN_ONCE in last patch Thomas Renninger
2009-02-05 12:02   ` Ingo Molnar
2009-02-05 12:09     ` Thomas Renninger
2009-02-05 12:33       ` Ingo Molnar
2009-02-05 12:53         ` Thomas Renninger
2009-02-05 13:26           ` Ingo Molnar
2009-02-05 12:27     ` Thomas Renninger
2009-02-05 12:42       ` Ingo Molnar
2009-02-05 13:04         ` [tip:core/printk] printk: introduce printk_once() Ingo Molnar
2009-02-05 14:12           ` Thomas Renninger
2009-02-05 10:18 ` Thomas Renninger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1233829109-23358-3-git-send-email-trenn@suse.de \
    --to=trenn@suse$(echo .)de \
    --cc=cpufreq@vger$(echo .)kernel.org \
    --cc=davej@redhat$(echo .)com \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox