Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: tegra: super: Fix sparse warnings for functions not declared as static

Sparse reports the following warnings for structures and functions that
should be declared static:

drivers/clk/tegra/clk-tegra-super-gen4.c:70:35: warning: symbol
'tegra_super_gen_info_gen4' was not declared. Should it be static?
drivers/clk/tegra/clk-tegra-super-gen4.c:96:35: warning: symbol
'tegra_super_gen_info_gen5' was not declared. Should it be static?
drivers/clk/tegra/clk-tegra-super-gen4.c:174:13: warning: symbol
'tegra_super_clk_init' was not declared. Should it be static?

Fix this by making the above static.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Jon Hunter and committed by
Thierry Reding
5a1d5eff fd360e20

+3 -3
+3 -3
drivers/clk/tegra/clk-tegra-super-gen4.c
··· 67 67 "pll_p", "pll_p_out4", "unused", 68 68 "unused", "pll_x", "pll_x_out0" }; 69 69 70 - const struct tegra_super_gen_info tegra_super_gen_info_gen4 = { 70 + static const struct tegra_super_gen_info tegra_super_gen_info_gen4 = { 71 71 .gen = gen4, 72 72 .sclk_parents = sclk_parents, 73 73 .cclk_g_parents = cclk_g_parents, ··· 93 93 "unused", "unused", "unused", "unused", 94 94 "dfllCPU_out" }; 95 95 96 - const struct tegra_super_gen_info tegra_super_gen_info_gen5 = { 96 + static const struct tegra_super_gen_info tegra_super_gen_info_gen5 = { 97 97 .gen = gen5, 98 98 .sclk_parents = sclk_parents_gen5, 99 99 .cclk_g_parents = cclk_g_parents_gen5, ··· 171 171 *dt_clk = clk; 172 172 } 173 173 174 - void __init tegra_super_clk_init(void __iomem *clk_base, 174 + static void __init tegra_super_clk_init(void __iomem *clk_base, 175 175 void __iomem *pmc_base, 176 176 struct tegra_clk *tegra_clks, 177 177 struct tegra_clk_pll_params *params,