Skip to content

Commit

Permalink
clk: sifive: fu540-prci: Declare static const variable 'prci_clk_fu54…
Browse files Browse the repository at this point in the history
…0' 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>
  • Loading branch information
Lee Jones authored and Stephen Boyd committed Feb 11, 2021
1 parent ee70d49 commit 487dc7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/clk/sifive/fu540-prci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
5 changes: 5 additions & 0 deletions drivers/clk/sifive/sifive-prci.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#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
*/
Expand Down

0 comments on commit 487dc7b

Please sign in to comment.