]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
m68k: coldfire: make symbol m523x_clk_lookup static
authorWang Jingjin <wangjingjin1@huawei.com>
Fri, 10 Jun 2022 02:07:55 +0000 (10:07 +0800)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 24 Jul 2022 23:01:09 +0000 (09:01 +1000)
Fix sparse warnings:

arch/m68k/coldfire/m523x.c:31:19: sparse: sparse: symbol 'm523x_clk_lookup' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/coldfire/m523x.c

index 193c178162c1ce59fc0096307f57f0164369651d..83a997313393c4b94404a316ffa848904e956621 100644 (file)
@@ -28,7 +28,7 @@
 DEFINE_CLK(pll, "pll.0", MCF_CLK);
 DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
 
-struct clk_lookup m523x_clk_lookup[] = {
+static struct clk_lookup m523x_clk_lookup[] = {
        CLKDEV_INIT(NULL, "pll.0", &clk_pll),
        CLKDEV_INIT(NULL, "sys.0", &clk_sys),
        CLKDEV_INIT("mcfpit.0", NULL, &clk_pll),