[lkml]   [2016]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] power: collie_battery: hide unused variable
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 <>

Acked-by: Pavel Machek <>

(cesky, pictures)

 \ /
  Last update: 2016-01-30 17:41    [W:0.072 / U:1.664 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site