Re: [PATCH] opp: avoid uninitialized-variable use

2020-05-31 Thread Viresh Kumar
On 30-05-20, 14:40, Arnd Bergmann wrote: > On Sat, May 30, 2020 at 11:21 AM Viresh Kumar wrote: > > On 29-05-20, 22:17, Arnd Bergmann wrote: > > > An uninitialized pointer is passed into another function but > > > --- a/drivers/opp/core.c > > > +++ b/drivers/opp/core.c > > > @@ -872,7 +872,7 @@

Re: [PATCH] opp: avoid uninitialized-variable use

2020-05-30 Thread Arnd Bergmann
On Sat, May 30, 2020 at 11:21 AM Viresh Kumar wrote: > On 29-05-20, 22:17, Arnd Bergmann wrote: > > An uninitialized pointer is passed into another function but > > --- a/drivers/opp/core.c > > +++ b/drivers/opp/core.c > > @@ -872,7 +872,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned

Re: [PATCH] opp: avoid uninitialized-variable use

2020-05-30 Thread Viresh Kumar
On 29-05-20, 22:17, Arnd Bergmann wrote: > An uninitialized pointer is passed into another function but > ignored there: > > drivers/opp/core.c:875:32: error: variable 'opp' is uninitialized when used > here [-Werror,-Wuninitialized] > ret = _set_opp_bw(opp_table, opp, dev,

[PATCH] opp: avoid uninitialized-variable use

2020-05-29 Thread Arnd Bergmann
An uninitialized pointer is passed into another function but ignored there: drivers/opp/core.c:875:32: error: variable 'opp' is uninitialized when used here [-Werror,-Wuninitialized] ret = _set_opp_bw(opp_table, opp, dev, true); ^~~