* regulator_lock_supply warning: unused variable 'i'
@ 2016-01-25 5:24 Kuninori Morimoto
2016-01-25 12:08 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2016-01-25 5:24 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown; +Cc: linux-kernel
Hi Mark, Liam, and all
I always get this warning from regulator_lock_supply
LINUX/drivers/regulator/core.c: In function 'regulator_lock_supply':
LINUX/drivers/regulator/core.c:142:6: warning: unused variable 'i' [-Wunused-variable]
int i = 0;
my .config has
> grep CONFIG_DEBUG_LOCK_ALLOC .config
# CONFIG_DEBUG_LOCK_ALLOC is not set
I don't like this bad idea, but...
#ifdef CONFIG_DEBUG_LOCK_ALLOC
int i = 0;
#endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: regulator_lock_supply warning: unused variable 'i'
2016-01-25 5:24 regulator_lock_supply warning: unused variable 'i' Kuninori Morimoto
@ 2016-01-25 12:08 ` Mark Brown
2016-01-26 0:04 ` Kuninori Morimoto
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2016-01-25 12:08 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
On Mon, Jan 25, 2016 at 05:24:26AM +0000, Kuninori Morimoto wrote:
> I always get this warning from regulator_lock_supply
Not in mainline you don't, it's fixed.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: regulator_lock_supply warning: unused variable 'i'
2016-01-25 12:08 ` Mark Brown
@ 2016-01-26 0:04 ` Kuninori Morimoto
0 siblings, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2016-01-26 0:04 UTC (permalink / raw)
To: Mark Brown; +Cc: Liam Girdwood, linux-kernel
Hi Mark
> > I always get this warning from regulator_lock_supply
>
> Not in mainline you don't, it's fixed.
Great! thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-26 0:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 5:24 regulator_lock_supply warning: unused variable 'i' Kuninori Morimoto
2016-01-25 12:08 ` Mark Brown
2016-01-26 0:04 ` Kuninori Morimoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®