[2.6 patch] drivers/cpufreq/cpufreq.c: fix a compile warning with SMP=n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

--- 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
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux