Skip to content

Commit 487dc7b

Browse files
Lee Jonesbebarino
authored andcommitted
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 <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Pragnesh Patel <[email protected]> Cc: Zong Li <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Palmer Dabbelt <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent ee70d49 commit 487dc7b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/clk/sifive/fu540-prci.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,4 @@
1313

1414
extern struct __prci_clock __prci_init_clocks_fu540[NUM_CLOCK_FU540];
1515

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-
2116
#endif /* __SIFIVE_CLK_FU540_PRCI_H */

drivers/clk/sifive/sifive-prci.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#include "fu540-prci.h"
1313
#include "fu740-prci.h"
1414

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+
1520
/*
1621
* Private functions
1722
*/

0 commit comments

Comments
 (0)