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


Groups > linux.kernel > #1244842

Re: [PATCH] regulator: core: avoid unused variable warning

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] regulator: core: avoid unused variable warning
Date 2015-10-12 17:50 +0200
Message-ID <qiNwm-3ks-19@gated-at.bofh.it> (permalink)
References <qhF7P-2d6-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, Oct 09, 2015 at 02:36:47PM +0200, Arnd Bergmann wrote:

> The second argument of the mutex_lock_nested() helper is only
> evaluated if CONFIG_DEBUG_LOCK_ALLOC is set. Otherwise we
> get this build warning for the new regulator_lock_supply
> function:

Shouldn't we have an annotation or something for this in
mutex_lock_nested()?  It seems like something that might come up
elsewhere and it's a bit of a surprise to have one of the arguments
there not be evaluated.

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] regulator: core: avoid unused variable warning Arnd Bergmann <arnd@arndb.de> - 2015-10-09 14:40 +0200
  Re: [PATCH] regulator: core: avoid unused variable warning Mark Brown <broonie@kernel.org> - 2015-10-12 17:50 +0200
    Re: [PATCH] regulator: core: avoid unused variable warning Arnd Bergmann <arnd@arndb.de> - 2015-10-13 21:30 +0200

csiph-web