summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-02-26 17:42:42 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-27 00:49:36 +0100
commit8a5c74a175ac117e55a50b489ee041f40ff8866b (patch)
treea069bb3039a34245a0aaeb336e849e7d20275771 /drivers/cpufreq/cpufreq.c
parentMerge back earlier 'pm-cpufreq' material. (diff)
downloadlinux-8a5c74a175ac117e55a50b489ee041f40ff8866b.tar.xz
linux-8a5c74a175ac117e55a50b489ee041f40ff8866b.zip
cpufreq: Mark function as static in cpufreq.c
Mark function as static in cpufreq.c because it is not used outside this file. This eliminates the following warning in cpufreq.c: drivers/cpufreq/cpufreq.c:355:9: warning: no previous prototype for ‘show_boost’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index c755b5fe317c..5815af50d3de 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -352,7 +352,7 @@ EXPORT_SYMBOL_GPL(cpufreq_notify_post_transition);
/*********************************************************************
* SYSFS INTERFACE *
*********************************************************************/
-ssize_t show_boost(struct kobject *kobj,
+static ssize_t show_boost(struct kobject *kobj,
struct attribute *attr, char *buf)
{
return sprintf(buf, "%d\n", cpufreq_driver->boost_enabled);