Skip to content

Commit 469c701

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/sclp: replace zero-length array with flexible-array member
There are numerous patches which convert zero-length arrays with a flexible-array member. Convert the remaining s390 occurrences. Suggested-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: KSPP#78 Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent ca1382e commit 469c701

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/s390/char/sclp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct read_storage_sccb {
204204
u16 assigned;
205205
u16 standby;
206206
u16 :16;
207-
u32 entries[0];
207+
u32 entries[];
208208
} __packed;
209209

210210
static inline void sclp_fill_core_info(struct sclp_core_info *info,

drivers/s390/char/sclp_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ struct attach_storage_sccb {
241241
u16 :16;
242242
u16 assigned;
243243
u32 :32;
244-
u32 entries[0];
244+
u32 entries[];
245245
} __packed;
246246

247247
static int sclp_attach_storage(u8 id)

0 commit comments

Comments
 (0)