From: Naresh Bhat naresh.bhat@linaro.org
CC drivers/acpi/processor_idle.o drivers/acpi/processor_idle.c: In function ‘acpi_idle_play_dead’: drivers/acpi/processor_idle.c:758:28: warning: unused variable ‘cx’ [-Wunused-variable] --- drivers/acpi/processor_idle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 0b6132a..0993526 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -755,8 +755,9 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, */ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) { +#ifdef CONFIG_X86 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); - +#endif ACPI_FLUSH_CPU_CACHE();
while (1) {
NAK
The only reason there is a warning here is because we hacked out the code below until arm platform has support. Warning serves as a good reminder to go back and fix!
Graeme
On 27/06/13 09:07, naresh.bhat@linaro.org wrote:
From: Naresh Bhat naresh.bhat@linaro.org
CC drivers/acpi/processor_idle.o drivers/acpi/processor_idle.c: In function ‘acpi_idle_play_dead’: drivers/acpi/processor_idle.c:758:28: warning: unused variable ‘cx’ [-Wunused-variable]
drivers/acpi/processor_idle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 0b6132a..0993526 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -755,8 +755,9 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, */ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) { +#ifdef CONFIG_X86 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
+#endif ACPI_FLUSH_CPU_CACHE(); while (1) {