Skip to contentSkip to conversation

cpufreq: vexpress: Drop unused variable

PATCH Applied Guenter Roeck 3 participants 3 messages Sep 9, 2021 – Oct 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: vexpress: Drop unused variable

arm:allmodconfig fails to build with the following error.

drivers/cpufreq/vexpress-spc-cpufreq.c:454:13: error:
unused variable 'cur_cluster'

Remove the unused variable.

Fixes bb8c26d9387f ("cpufreq: vexpress: Set CPUFREQ_IS_COOLING_DEV flag")
Cc Viresh Kumar <[email protected]>
---
 drivers/cpufreq/vexpress-spc-cpufreq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/vexpress-spc-cpufreq.c +0 -1
index 284b6bd040b1..d295f405c4bb 100644
@@ -451,7 +451,6 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy)
 static int ve_spc_cpufreq_exit(struct cpufreq_policy *policy)
 {
 	struct device *cpu_dev;
-	int cur_cluster = cpu_to_cluster(policy->cpu);
 
 	cpu_dev = get_cpu_device(policy->cpu);
 	if (!cpu_dev) {
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Guenter Roeck

arm:allmodconfig fails to build with the following error.

drivers/cpufreq/vexpress-spc-cpufreq.c:454:13: error:
unused variable 'cur_cluster'

Remove the unused variable.

Fixes bb8c26d9387f ("cpufreq: vexpress: Set CPUFREQ_IS_COOLING_DEV flag")
Cc Viresh Kumar <[email protected]>

I hit this in build testing too.

Signature · 1 line
Kees Cook
maintainer Applied
#2 lore raw
In reply to Guenter Roeck
Quoted 19 lines · Guenter Roeck

arm:allmodconfig fails to build with the following error.

drivers/cpufreq/vexpress-spc-cpufreq.c:454:13: error:
unused variable 'cur_cluster'

Remove the unused variable.

Fixes bb8c26d9387f ("cpufreq: vexpress: Set CPUFREQ_IS_COOLING_DEV flag")
Cc Viresh Kumar <[email protected]>
---
 drivers/cpufreq/vexpress-spc-cpufreq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpufreq/vexpress-spc-cpufreq.c +0 -0
index 284b6bd040b1..d295f405c4bb 100644

drivers/cpufreq/vexpress-spc-cpufreq.c static int ve_spc_cpufreq_init(struct cpufreq_policy *policy) · line 456

Quoted 7 lines
drivers/cpufreq/vexpress-spc-cpufreq.c +0 -1
@@ -451,7 +451,6 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy)
 static int ve_spc_cpufreq_exit(struct cpufreq_policy *policy)
 {
 	struct device *cpu_dev;
-	int cur_cluster = cpu_to_cluster(policy->cpu);
 
 	cpu_dev = get_cpu_device(policy->cpu);
 	if (!cpu_dev) {

Applied. Thanks.

Signature · 1 line
viresh