mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 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

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®