lkml.org 
[lkml]   [2005]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromGrant Coady <>
Subject[PATCH] Silence cpufreq warning for UP
DateSat, 12 Nov 2005 14:53:29 +1100
Greetings,

From: Grant Coady <gcoady@gmail.com>

Fix this warning for UP system:
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>

---
cpufreq.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.15-rc1a/drivers/cpufreq/cpufreq.c~ 2005-11-12 15:16:34.000000000 +1100
+++ linux-2.6.15-rc1a/drivers/cpufreq/cpufreq.c 2005-11-12 16:02:06.000000000 +1100
@@ -693,8 +693,8 @@
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

--
Thanks,
Grant.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-11-12 04:56    [from the cache]
©2003-2010