Messages in this thread Patch in this message | | | Date | Mon, 7 Nov 2005 21:03:45 +0100 | From | Adrian Bunk <> | Subject | [2.6 patch] drivers/cpufreq/cpufreq.c: fix a compile warning with SMP=n |
| |
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 - 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/
| |