diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-06-17 11:07:13 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-06-19 12:05:08 +0200 |
commit | 0b1be03f25bb4c92de6408da4de9361f4cb50ae3 (patch) | |
tree | 52ec7ec268c33e14b32b7f8791c1ae4c0724d18c /arch | |
parent | powerpc/mm/32s: fix condition that is always true (diff) | |
download | linux-0b1be03f25bb4c92de6408da4de9361f4cb50ae3.tar.xz linux-0b1be03f25bb4c92de6408da4de9361f4cb50ae3.zip |
powerpc/ps3: 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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/ps3stor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/ps3stor.h b/arch/powerpc/include/asm/ps3stor.h index 6fcaf714fa50..d5767ba0670b 100644 --- a/arch/powerpc/include/asm/ps3stor.h +++ b/arch/powerpc/include/asm/ps3stor.h @@ -51,7 +51,7 @@ struct ps3_storage_device { unsigned int num_regions; unsigned long accessible_regions; unsigned int region_idx; /* first accessible region */ - struct ps3_storage_region regions[0]; /* Must be last */ + struct ps3_storage_region regions[]; /* Must be last */ }; static inline struct ps3_storage_device *to_ps3_storage_device(struct device *dev) |