Skip to content

Commit da64242

Browse files
nhukcbebarino
authored andcommitted
clk: qcom: Fix -Wunused-const-variable
Clang produces the following warning drivers/clk/qcom/gcc-msm8996.c:133:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = { ^drivers/clk/qcom/gcc-msm8996.c:141:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = { ^ drivers/clk/qcom/gcc-msm8996.c:187:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = { ^ drivers/clk/qcom/gcc-msm8996.c:197:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = { It looks like these were never used. Fixes: b1e010c ("clk: qcom: Add MSM8996 Global Clock Control (GCC) driver") Cc: [email protected] Link: ClangBuiltLinux#518 Suggested-by: Nathan Chancellor <[email protected]> Signed-off-by: Nathan Huckleberry <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent be41141 commit da64242

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

drivers/clk/qcom/gcc-msm8996.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,6 @@ static const char * const gcc_xo_gpll0_gpll4_gpll0_early_div[] = {
138138
"gpll0_early_div"
139139
};
140140

141-
static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = {
142-
{ P_XO, 0 },
143-
{ P_GPLL0, 1 },
144-
{ P_GPLL2, 2 },
145-
{ P_GPLL3, 3 },
146-
{ P_GPLL0_EARLY_DIV, 6 }
147-
};
148-
149-
static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = {
150-
"xo",
151-
"gpll0",
152-
"gpll2",
153-
"gpll3",
154-
"gpll0_early_div"
155-
};
156-
157141
static const struct parent_map gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map[] = {
158142
{ P_XO, 0 },
159143
{ P_GPLL0, 1 },
@@ -192,26 +176,6 @@ static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early
192176
"gpll0_early_div"
193177
};
194178

195-
static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = {
196-
{ P_XO, 0 },
197-
{ P_GPLL0, 1 },
198-
{ P_GPLL2, 2 },
199-
{ P_GPLL3, 3 },
200-
{ P_GPLL1, 4 },
201-
{ P_GPLL4, 5 },
202-
{ P_GPLL0_EARLY_DIV, 6 }
203-
};
204-
205-
static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = {
206-
"xo",
207-
"gpll0",
208-
"gpll2",
209-
"gpll3",
210-
"gpll1",
211-
"gpll4",
212-
"gpll0_early_div"
213-
};
214-
215179
static struct clk_fixed_factor xo = {
216180
.mult = 1,
217181
.div = 1,

0 commit comments

Comments
 (0)