Skip to contentSkip to conversation

Silence cpufreq warning for UP

PATCH New Grant Coady 1 participant 1 message Nov 12, 2005 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Silence cpufreq warning for UP

Greetings,

From: Grant Coady <[email protected]>

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'

---
 cpufreq.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/cpufreq.c renamed from drivers/cpufreq/cpufreq.c~ +1 -1
@@ -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
 
Signature · 2 lines
Thanks,
Grant.