public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/cpufreq/cpufreq.c: fix a compile warning with SMP=n
@ 2005-11-07 20:03 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-11-07 20:03 UTC (permalink / raw)
  To: davej; +Cc: cpufreq, linux-kernel

This patch fixes the following compile warning with CONFIG_SMP=n:

<--  snip  -->

...
  CC      drivers/cpufreq/cpufreq.o
drivers/cpufreq/cpufreq.c: In function 'cpufreq_remove_dev':
drivers/cpufreq/cpufreq.c:696: warning: unused variable 'cpu_sys_dev'
...

<--  snip  -->


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.14-mm1-full/drivers/cpufreq/cpufreq.c.old	2005-11-07 19:27:33.000000000 +0100
+++ linux-2.6.14-mm1-full/drivers/cpufreq/cpufreq.c	2005-11-07 19:27:50.000000000 +0100
@@ -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
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-07 20:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 20:03 [2.6 patch] drivers/cpufreq/cpufreq.c: fix a compile warning with SMP=n Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox