Skip to contentSkip to conversation

clk: renesas: Mark rza2_cpg_clk_register static

PATCH Applied Stephen Boyd 2 participants 3 messages Nov 28, 2018 – Nov 29, 2018

Subsystems (2)
lore
Share & tools
lore

Stephen Boyd

author maintainer
#0 lore raw

PATCH 1/1 clk: renesas: Mark rza2_cpg_clk_register static

This is only used in this file, so mark it static to silence a sparse warning.

Cc Geert Uytterhoeven <[email protected]>

---

I've applied this to clk-renesas branch already, just not pushed out yet.

 drivers/clk/renesas/r7s9210-cpg-mssr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/renesas/r7s9210-cpg-mssr.c +1 -1
index e0793a9eb668..57c49fe88295 100644
@@ -155,7 +155,7 @@ static void __init r7s9210_update_clk_table(struct clk *extal_clk,
 	}
 }
 
-struct clk * __init rza2_cpg_clk_register(struct device *dev,
+static struct clk * __init rza2_cpg_clk_register(struct device *dev,
 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
 	struct clk **clks, void __iomem *base,
 	struct raw_notifier_head *notifiers)
Signature · 1 line
Sent by a computer through tubes
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Stephen Boyd

This is only used in this file, so mark it static to silence a sparse warning.

Cc Geert Uytterhoeven <[email protected]>

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds