From: Grant Coady Date: Tue, 22 Nov 2005 05:32:28 +0000 (-0800) Subject: [PATCH] cpufreq: silence cpufreq for UP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e738cf6d03786486b7e1adbaed1c5c4e14d23626;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] cpufreq: silence cpufreq for UP 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 Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 23a63207d74..1c0f62d0f93 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -693,8 +693,8 @@ static int cpufreq_remove_dev (struct sys_device * sys_dev) 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