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

clk: qcom: msm8996: Make symbol 'cpu_msm8996_clks' static

The sparse tool complains as follows:

drivers/clk/qcom/clk-cpu-8996.c:341:19: warning:
symbol 'cpu_msm8996_clks' was not declared. Should it be static?

This variable is not used outside of clk-cpu-8996.c, so this commit
marks it static.

Fixes: 03e342dc45c9 ("clk: qcom: Add CPU clock driver for msm8996")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200714142155.35085-1-weiyongjun1@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Wei Yongjun and committed by
Stephen Boyd
8607fa16 044f507d

+1 -1
+1 -1
drivers/clk/qcom/clk-cpu-8996.c
··· 338 338 .val_format_endian = REGMAP_ENDIAN_LITTLE, 339 339 }; 340 340 341 - struct clk_regmap *cpu_msm8996_clks[] = { 341 + static struct clk_regmap *cpu_msm8996_clks[] = { 342 342 &perfcl_pll.clkr, 343 343 &pwrcl_pll.clkr, 344 344 &perfcl_alt_pll.clkr,