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


Groups > linux.kernel > #1316210

regulator_lock_supply warning: unused variable 'i'

From Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Newsgroups linux.kernel
Subject regulator_lock_supply warning: unused variable 'i'
Date 2016-01-25 06:30 +0100
Message-ID <qUHSW-7Cs-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

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


Thread

regulator_lock_supply warning: unused variable 'i' Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - 2016-01-25 06:30 +0100
  Re: regulator_lock_supply warning: unused variable 'i' Mark Brown <broonie@kernel.org> - 2016-01-25 13:10 +0100
    Re: regulator_lock_supply warning: unused variable 'i' Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - 2016-01-26 01:10 +0100

csiph-web