Commit 0ed0eb01 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

soc: renesas: rcar-sysc: 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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 5f9e832c
...@@ -170,7 +170,7 @@ struct rcar_sysc_pd { ...@@ -170,7 +170,7 @@ struct rcar_sysc_pd {
struct generic_pm_domain genpd; struct generic_pm_domain genpd;
struct rcar_sysc_ch ch; struct rcar_sysc_ch ch;
unsigned int flags; unsigned int flags;
char name[0]; char name[];
}; };
static inline struct rcar_sysc_pd *to_rcar_pd(struct generic_pm_domain *d) static inline struct rcar_sysc_pd *to_rcar_pd(struct generic_pm_domain *d)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment