[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linaro-acpi
Subject:    [Linaro-acpi] [PATCH] ARM64: ACPI:Fix compilation warning prodessor_idle
From:       graeme.gregory () linaro ! org (Graeme Gregory)
Date:       2013-06-27 8:29:49
Message-ID: 51CBF7FD.9030102 () linaro ! org
[Download RAW message or body]

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 at linaro.org wrote:
> From: Naresh Bhat <naresh.bhat at 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) {



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic