Re: [PATCH] power: collie_battery: hide unused variable

From: Pavel Machek
Date: Sat Jan 30 2016 - 11:16:43 EST

On Mon 2016-01-25 16:45:49, Arnd Bergmann wrote:
> The 'wakeup_enabled' variable in this driver is only accessed
> by the optional power management functions and we get a warning
> when they are disabled:
> drivers/power/collie_battery.c:29:12: error: 'wakeup_enabled' defined but not used [-Werror=unused-variable]
> This moves the definition next to the users inside the same #ifdef,
> which avoids the warning.
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Pavel Machek <pavel@xxxxxx>

(cesky, pictures)