summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Coady <gcoady@gmail.com>2005-11-22 06:32:28 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-22 18:13:44 +0100
commite738cf6d03786486b7e1adbaed1c5c4e14d23626 (patch)
treeb929202b33a993a38110aec3722d8fee75406c32
parent[PATCH] hugetlb: fix race in set_max_huge_pages for multiple updaters of nr_h... (diff)
downloadlinux-e738cf6d03786486b7e1adbaed1c5c4e14d23626.tar.xz
linux-e738cf6d03786486b7e1adbaed1c5c4e14d23626.zip
[PATCH] cpufreq: silence cpufreq for UP
drivers/cpufreq/cpufreq.c: In function `cpufreq_remove_dev': drivers/cpufreq/cpufreq.c:696: warning: unused variable `cpu_sys_dev' Signed-off-by: Grant Coady <gcoady@gmail.com> Cc: Dave Jones <davej@codemonkey.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-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 23a63207d747..1c0f62d0f938 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -693,8 +693,8 @@ static int cpufreq_remove_dev (struct sys_device * sys_dev)
unsigned int cpu = sys_dev->id;
unsigned long flags;
struct cpufreq_policy *data;
- struct sys_device *cpu_sys_dev;
#ifdef CONFIG_SMP
+ struct sys_device *cpu_sys_dev;
unsigned int j;
#endif