summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-06-17 14:00:56 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2019-07-29 15:36:56 +0200
commit0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6 (patch)
treee244cec15df79c81ddabdc8a5773b6473facc64c /drivers/soc
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlinux-stable-0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6.tar.gz
linux-stable-0ed0eb0171d7c19310d9f7b06a6dee82a4fb8ab6.tar.bz2
linux-stable-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.c2
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)