summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/dispcc-sm8250.c
diff options
context:
space:
mode:
authorRen Zhijie <renzhijie2@huawei.com>2022-07-14 20:11:44 +0800
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-07-16 21:35:55 -0500
commitb5eb8cde863cdf455436c7ba3fb7362c49e1e64e (patch)
tree927b431fd7686b31da8f21f4ebd8a46d14a92d91 /drivers/clk/qcom/dispcc-sm8250.c
parent2b4e75a7a7c8d3531a40ebb103b92f88ff693f79 (diff)
clk: qcom: fix build error initializer element is not constant
CONFIG_CC_VERSION_TEXT="x86_64-linux-gnu-gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0" make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu-, will be failed, like this: drivers/clk/qcom/gpucc-sm8350.c:111:2: error: initializer element is not constant gpu_cc_parent, ^~~~~~~~~~~~~ drivers/clk/qcom/gpucc-sm8350.c:111:2: note: (near initialization for ‘gpu_cc_parent_data_0[0]’) drivers/clk/qcom/gpucc-sm8350.c:126:2: error: initializer element is not constant gpu_cc_parent, ^~~~~~~~~~~~~ drivers/clk/qcom/gpucc-sm8350.c:126:2: note: (near initialization for ‘gpu_cc_parent_data_1[0]’) make[3]: *** [drivers/clk/qcom/gpucc-sm8350.o] Error 1 It seems that nested constant initializer is not supported in GCC 7.4.0. For portability resons, we should fix it. Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 160758b05ab1 ("clk: qcom: add support for SM8350 GPUCC") Signed-off-by: Ren Zhijie <renzhijie2@huawei.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220714121144.71062-1-renzhijie2@huawei.com
Diffstat (limited to 'drivers/clk/qcom/dispcc-sm8250.c')
0 files changed, 0 insertions, 0 deletions