diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-06-17 14:00:56 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-07-29 15:36:56 +0200 |
commit | 0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6 (patch) | |
tree | e244cec15df79c81ddabdc8a5773b6473facc64c /drivers/soc | |
parent | Linus 5.3-rc1 (diff) | |
download | linux-0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6.tar.xz linux-0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6.zip |
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: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/renesas/rcar-sysc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c index 0c80fab4f8de..02b29ea62dc4 100644 --- a/drivers/soc/renesas/rcar-sysc.c +++ b/drivers/soc/renesas/rcar-sysc.c @@ -170,7 +170,7 @@ struct rcar_sysc_pd { struct generic_pm_domain genpd; struct rcar_sysc_ch ch; unsigned int flags; - char name[0]; + char name[]; }; static inline struct rcar_sysc_pd *to_rcar_pd(struct generic_pm_domain *d) |