clk: renesas: cpg-mssr: Use [] to denote a flexible array member

Flexible array members should be denoted using [] instead of [0], else
gcc will not warn when they are no longer at the end of the structure.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
这个提交包含在:
Geert Uytterhoeven
2019-06-17 13:58:58 +02:00
父节点 8f5e20b6b8
当前提交 ec2b827be3

查看文件

@@ -450,7 +450,7 @@ fail:
struct cpg_mssr_clk_domain {
struct generic_pm_domain genpd;
unsigned int num_core_pm_clks;
unsigned int core_pm_clks[0];
unsigned int core_pm_clks[];
};
static struct cpg_mssr_clk_domain *cpg_mssr_clk_domain;