Skip to content

Commit cb9eee5

Browse files
Tom Rixbebarino
authored andcommitted
clk: mediatek: fhctl: Mark local variables static
smatch reports drivers/clk/mediatek/clk-fhctl.c:17:27: warning: symbol 'fhctl_offset_v1' was not declared. Should it be static? drivers/clk/mediatek/clk-fhctl.c:30:27: warning: symbol 'fhctl_offset_v2' was not declared. Should it be static? These variables are only used in one file so should be static. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230406010935.1944976-1-trix@redhat.com Fixes: 8da312d ("clk: mediatek: fhctl: Add support for older fhctl register layout") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e0e3aca commit cb9eee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/mediatek/clk-fhctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PERCENT_TO_DDSLMT(dds, percent_m10) \
1515
((((dds) * (percent_m10)) >> 5) / 100)
1616

17-
const struct fhctl_offset fhctl_offset_v1 = {
17+
static const struct fhctl_offset fhctl_offset_v1 = {
1818
.offset_hp_en = 0x0,
1919
.offset_clk_con = 0x4,
2020
.offset_rst_con = 0x8,
@@ -27,7 +27,7 @@ const struct fhctl_offset fhctl_offset_v1 = {
2727
.offset_mon = 0x10,
2828
};
2929

30-
const struct fhctl_offset fhctl_offset_v2 = {
30+
static const struct fhctl_offset fhctl_offset_v2 = {
3131
.offset_hp_en = 0x0,
3232
.offset_clk_con = 0x8,
3333
.offset_rst_con = 0xc,

0 commit comments

Comments
 (0)