clk: sifive: fu540-prci: Declare static const variable 'prci_clk_fu540' where it...
authorLee Jones <lee.jones@linaro.org>
Wed, 20 Jan 2021 09:30:26 +0000 (09:30 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Feb 2021 19:56:06 +0000 (11:56 -0800)
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>
drivers/clk/sifive/fu540-prci.h
drivers/clk/sifive/sifive-prci.c

index c8271efa7bdc73587155ec8e1cf433d92a3abadd..c220677dc0108e1ef4fb292149e8a060b0d0f38f 100644 (file)
@@ -13,9 +13,4 @@
 
 extern struct __prci_clock __prci_init_clocks_fu540[NUM_CLOCK_FU540];
 
-static const struct prci_clk_desc prci_clk_fu540 = {
-       .clks = __prci_init_clocks_fu540,
-       .num_clks = ARRAY_SIZE(__prci_init_clocks_fu540),
-};
-
 #endif /* __SIFIVE_CLK_FU540_PRCI_H */
index c78b042750e210926ae30e087837d29193ec3e58..1490b01ce629020ad727cbeead08f1ad6d7059a2 100644 (file)
 #include "fu540-prci.h"
 #include "fu740-prci.h"
 
+static const struct prci_clk_desc prci_clk_fu540 = {
+       .clks = __prci_init_clocks_fu540,
+       .num_clks = ARRAY_SIZE(__prci_init_clocks_fu540),
+};
+
 /*
  * Private functions
  */