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

powerpc/mpc512x: fix sparce warnings for non static symbols

Fix warnings:
symbol 'clockctl' was not declared. Should it be static?
symbol 'rate_clks' was not declared. Should it be static?
symbol 'dev_clks' was not declared. Should it be static?
symbol 'mpc5121_clk_init' was not declared. Should it be static?

Signed-off-by: Anatolij Gustschin <agust@denx.de>

+5 -3
+1
arch/powerpc/include/asm/mpc5121.h
··· 68 68 }; 69 69 70 70 int mpc512x_cs_config(unsigned int cs, u32 val); 71 + int __init mpc5121_clk_init(void); 71 72 72 73 #endif /* __ASM_POWERPC_MPC5121_H__ */
+4 -3
arch/powerpc/platforms/512x/clock.c
··· 26 26 27 27 #include <linux/of_platform.h> 28 28 #include <asm/mpc5xxx.h> 29 + #include <asm/mpc5121.h> 29 30 #include <asm/clk_interface.h> 30 31 31 32 #undef CLK_DEBUG ··· 123 122 u32 dccr; /* DIU Clk Cnfg Reg */ 124 123 }; 125 124 126 - struct mpc512x_clockctl __iomem *clockctl; 125 + static struct mpc512x_clockctl __iomem *clockctl; 127 126 128 127 static int mpc5121_clk_enable(struct clk *clk) 129 128 { ··· 552 551 .calc = ac97_clk_calc, 553 552 }; 554 553 555 - struct clk *rate_clks[] = { 554 + static struct clk *rate_clks[] = { 556 555 &ref_clk, 557 556 &sys_clk, 558 557 &diu_clk, ··· 608 607 * There are two clk enable registers with 32 enable bits each 609 608 * psc clocks and device clocks are all stored in dev_clks 610 609 */ 611 - struct clk dev_clks[2][32]; 610 + static struct clk dev_clks[2][32]; 612 611 613 612 /* 614 613 * Given a psc number return the dev_clk