Re: [PATCH] Regulator: Suppress compiler warnings

2015-09-01 Thread Keith Busch
On Tue, 1 Sep 2015, Mark Brown wrote: On Tue, Sep 01, 2015 at 09:52:13AM +0900, Krzysztof Kozlowski wrote: 2015-09-01 1:41 GMT+09:00 Keith Busch : int regulator_is_enabled_regmap(struct regulator_dev *rdev) { - unsigned int val; + unsigned int uninitialized_var(val); int r

Re: [PATCH] Regulator: Suppress compiler warnings

2015-09-01 Thread Mark Brown
On Tue, Sep 01, 2015 at 09:52:13AM +0900, Krzysztof Kozlowski wrote: > 2015-09-01 1:41 GMT+09:00 Keith Busch : > > Some compilers complain of possible uninitialized variable usage, like > > the following: > > drivers/regulator/helpers.c: In function ‘regulator_get_bypass_regmap’: > > drivers/r

Re: [PATCH] Regulator: Suppress compiler warnings

2015-08-31 Thread Krzysztof Kozlowski
2015-09-01 1:41 GMT+09:00 Keith Busch : > Some compilers complain of possible uninitialized variable usage, like > the following: > > drivers/regulator/helpers.c: In function ‘regulator_get_bypass_regmap’: > drivers/regulator/helpers.c:463:16: warning: ‘val’ may be used > uninitialized in this

[PATCH] Regulator: Suppress compiler warnings

2015-08-31 Thread Keith Busch
Some compilers complain of possible uninitialized variable usage, like the following: drivers/regulator/helpers.c: In function ‘regulator_get_bypass_regmap’: drivers/regulator/helpers.c:463:16: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] The code is safe thoug