Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322404 > unrolled thread

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

Started byPavel Machek <pavel@ucw.cz>
First post2016-01-30 17:20 +0100
Last post2016-01-30 17:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] power: collie_battery: hide unused variable Pavel Machek <pavel@ucw.cz> - 2016-01-30 17:20 +0100

#1322404 — Re: [PATCH] power: collie_battery: hide unused variable

FromPavel Machek <pavel@ucw.cz>
Date2016-01-30 17:20 +0100
SubjectRe: [PATCH] power: collie_battery: hide unused variable
Message-ID<qWGpI-69a-7@gated-at.bofh.it>
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@arndb.de>

Acked-by: Pavel Machek <pavel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web