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


Groups > linux.kernel > #1266325

Re: regulator: build warning in regulator_lock_supply()

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: regulator: build warning in regulator_lock_supply()
Date 2015-11-10 09:40 +0100
Message-ID <qtcD8-2Fh-5@gated-at.bofh.it> (permalink)
References <qt7N7-81B-11@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 Mon, Nov 09, 2015 at 07:21:48PM -0800, Frank Rowand wrote:
> In the current Linus tree, new build warning.

> When CONFIG_DEBUG_LOCK_ALLOC is not enabled,

>   drivers/regulator/core.c: In function 'regulator_lock_supply':
>   drivers/regulator/core.c:142:6: warning: unused variable 'i' [-Wunused-variable]

> Introduced by commit

>   9f01cd4a915e1 ("regulator: core: introduce function to lock regulators and its supplies")

There was dome discussion about fixing the lockdep code so this doesn't
happen (since it's perfectly natural code).  I didn't follow where that
went, there was a distraction about the user being buggy which was
addressed.

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


Thread

regulator: build warning in regulator_lock_supply() Frank Rowand <frowand.list@gmail.com> - 2015-11-10 04:30 +0100
  Re: regulator: build warning in regulator_lock_supply() Sascha Hauer <s.hauer@pengutronix.de> - 2015-11-10 08:40 +0100
  Re: regulator: build warning in regulator_lock_supply() Mark Brown <broonie@kernel.org> - 2015-11-10 09:40 +0100

csiph-web