OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e7586a
)
cpufreq: Fix sparse warning by making local function static
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 25 Oct 2012 22:51:32 +0000
(
00:51
+0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:08 +0000
(
00:33
+0100)
cpufreq_disabled() is a local function, so should be marked static.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq.c
b/drivers/cpufreq/cpufreq.c
index
f552d5f
..
261ef65
100644
(file)
--- a/
drivers/cpufreq/cpufreq.c
+++ b/
drivers/cpufreq/cpufreq.c
@@
-129,7
+129,7
@@
static int __init init_cpufreq_transition_notifier_list(void)
pure_initcall(init_cpufreq_transition_notifier_list);
static int off __read_mostly;
-int cpufreq_disabled(void)
+
static
int cpufreq_disabled(void)
{
return off;
}