Skip to contentSkip to conversation

clk: rockchip: Mark rockchip_fractional_approximation static

PATCH Applied Stephen Boyd 2 participants 3 messages Aug 23, 2017 – Aug 24, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: rockchip: Mark rockchip_fractional_approximation static

Silence the sparse warning

clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?

Cc Elaine Zhang <[email protected]>
Cc Heiko Stuebner <[email protected]>
---
 drivers/clk/rockchip/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk.c +1 -1
index b6db79a00602..35dbd63c2f49 100644
@@ -169,7 +169,7 @@ static int rockchip_clk_frac_notifier_cb(struct notifier_block *nb,
  * fractional divider must set that denominator is 20 times larger than
  * numerator to generate precise clock frequency.
  */
-void rockchip_fractional_approximation(struct clk_hw *hw,
+static void rockchip_fractional_approximation(struct clk_hw *hw,
 		unsigned long rate, unsigned long *parent_rate,
 		unsigned long *m, unsigned long *n)
 {
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
author Applied
#1 lore raw
Quoted 8 lines · Stephen Boyd

Silence the sparse warning

clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?

Cc Elaine Zhang <[email protected]>
Cc Heiko Stuebner <[email protected]>

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer
#2 lore raw

Am Mittwoch, 23. August 2017, 16:08:19 CEST schrieb Stephen Boyd:

Quoted 11 lines · Stephen Boyd
Quoted 8 lines

Silence the sparse warning

clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?

Cc Elaine Zhang <[email protected]>
Cc Heiko Stuebner <[email protected]>

---

Applied to clk-next

thanks for catching that.

Heiko