diff options
author | Geert Uytterhoeven | 2019-06-17 13:58:58 +0200 |
---|---|---|
committer | Geert Uytterhoeven | 2019-06-20 11:37:16 +0200 |
commit | ec2b827be39624bab743730385bc170d29472965 (patch) | |
tree | a7261f6f0acaf2b042685d13c662845b96a5ccb0 /drivers/clk/renesas | |
parent | 8f5e20b6b8848baca6b1cebcd46ab9e94991d24e (diff) |
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>
Diffstat (limited to 'drivers/clk/renesas')
-rw-r--r-- | drivers/clk/renesas/renesas-cpg-mssr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index 7c241ff3ae2f..52bbb9ce3807 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -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; |