Skip to content

Commit e20985a

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/cio: 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 469c701 commit e20985a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/s390/cio/chsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ int __init chsc_get_cssid_iid(int idx, u8 *cssid, u8 *iid)
11711171
u8 cssid;
11721172
u8 iid;
11731173
u32 : 16;
1174-
} list[0];
1174+
} list[];
11751175
} *sdcal_area;
11761176
int ret;
11771177

drivers/s390/cio/chsc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ struct chsc_scpd {
120120
u32 zeroes1;
121121
struct chsc_header response;
122122
u32:32;
123-
u8 data[0];
123+
u8 data[];
124124
} __packed __aligned(PAGE_SIZE);
125125

126126
struct chsc_sda_area {

0 commit comments

Comments
 (0)