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

clk: sifive: fu540-prci: Declare static const variable 'prci_clk_fu540' where it's used

Fixes the following W=1 kernel build warning(s):

drivers/clk/sifive/fu540-prci.h:16:35: warning: ‘prci_clk_fu540’ defined but not used [-Wunused-const-variable=]
drivers/clk/sifive/fu540-prci.h:16:35: warning: ‘prci_clk_fu540’ defined but not used [-Wunused-const-variable=]

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Pragnesh Patel <Pragnesh.patel@sifive.com>
Cc: Zong Li <zong.li@sifive.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-riscv@lists.infradead.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210120093040.1719407-7-lee.jones@linaro.org
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Lee Jones and committed by
Stephen Boyd
487dc7bb ee70d49a

+5 -5
-5
drivers/clk/sifive/fu540-prci.h
··· 13 13 14 14 extern struct __prci_clock __prci_init_clocks_fu540[NUM_CLOCK_FU540]; 15 15 16 - static const struct prci_clk_desc prci_clk_fu540 = { 17 - .clks = __prci_init_clocks_fu540, 18 - .num_clks = ARRAY_SIZE(__prci_init_clocks_fu540), 19 - }; 20 - 21 16 #endif /* __SIFIVE_CLK_FU540_PRCI_H */
+5
drivers/clk/sifive/sifive-prci.c
··· 12 12 #include "fu540-prci.h" 13 13 #include "fu740-prci.h" 14 14 15 + static const struct prci_clk_desc prci_clk_fu540 = { 16 + .clks = __prci_init_clocks_fu540, 17 + .num_clks = ARRAY_SIZE(__prci_init_clocks_fu540), 18 + }; 19 + 15 20 /* 16 21 * Private functions 17 22 */