clk: SPEAr: Vco-pll: Fix compilation warning
Subsystems (2)
PATCH 1/1 clk: SPEAr: Vco-pll: Fix compilation warning
Currently we are getting following warning for SPEAr clk-vco-pll.
"warning: i is used uninitialized in this function."
This is because we are getting value of i by passing its pointer to another routine.
The variables here are really not used uninitialized.
---
Andrew,
I know this must have gone through Mike Turquette. But he is not around for a week. As, this is a pretty small change, can you take it upstream?
drivers/clk/spear/clk-vco-pll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/spear/clk-vco-pll.c +1 -1
@@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate,struct clk_pll *pll =to_clk_pll (hw);struct pll_rate_tbl *rtbl = pll->vco->rtbl;unsigned long flags =0 , val; -int i; +int uninitialized_var (i );clk_pll_round_rate_index (hw, drate,NULL , &i);
Signature · 1 line
1.7.12.rc2.18.g61b472e
PATCH 1/1 clk: SPEAr: Vco-pll: Fix compilation warning
Hi Mike,
Because you are back now, can you please push this patch?
Quoted 42 lines · Viresh Kumar
Currently we are getting following warning for SPEAr clk-vco-pll.
"warning: i is used uninitialized in this function."
This is because we are getting value of i by passing its pointer to another routine.
The variables here are really not used uninitialized.
Signed-off-by Viresh Kumar <[email protected]>---
Andrew,
I know this must have gone through Mike Turquette. But he is not around for a week. As, this is a pretty small change, can you take it upstream?
drivers/clk/spear/clk-vco-pll.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/spear/clk-vco-pll.c +1
-2@@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate,struct clk_pll *pll =to_clk_pll (hw);struct pll_rate_tbl *rtbl = pll->vco->rtbl;unsigned long flags =0 , val; -int i; +int uninitialized_var (i );clk_pll_round_rate_index (hw, drate,NULL , &i); --1.7.12.rc2.18.g61b472e
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/1 clk: SPEAr: Vco-pll: Fix compilation warning
Quoting viresh kumar (2012-10-11 22:51:05)
Quoted 4 lines
Hi Mike,
Because you are back now, can you please push this patch?
Done.
Regards,
Mike
Quoted 43 lines · Viresh Kumar
Quoted 42 lines
Currently we are getting following warning for SPEAr clk-vco-pll.
"warning: i is used uninitialized in this function."
This is because we are getting value of i by passing its pointer to another routine.
The variables here are really not used uninitialized.
Signed-off-by Viresh Kumar <[email protected]>---
Andrew,
I know this must have gone through Mike Turquette. But he is not around for a week. As, this is a pretty small change, can you take it upstream?
drivers/clk/spear/clk-vco-pll.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/spear/clk-vco-pll.c +1
-2@@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate,struct clk_pll *pll =to_clk_pll (hw);struct pll_rate_tbl *rtbl = pll->vco->rtbl;unsigned long flags =0 , val; -int i; +int uninitialized_var (i );clk_pll_round_rate_index (hw, drate,NULL , &i); --1.7.12.rc2.18.g61b472e
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel