Commit e20985a7 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

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: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://github.com/KSPP/linux/issues/78
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.htmlSigned-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 469c701d
...@@ -1171,7 +1171,7 @@ int __init chsc_get_cssid_iid(int idx, u8 *cssid, u8 *iid) ...@@ -1171,7 +1171,7 @@ int __init chsc_get_cssid_iid(int idx, u8 *cssid, u8 *iid)
u8 cssid; u8 cssid;
u8 iid; u8 iid;
u32 : 16; u32 : 16;
} list[0]; } list[];
} *sdcal_area; } *sdcal_area;
int ret; int ret;
......
...@@ -120,7 +120,7 @@ struct chsc_scpd { ...@@ -120,7 +120,7 @@ struct chsc_scpd {
u32 zeroes1; u32 zeroes1;
struct chsc_header response; struct chsc_header response;
u32:32; u32:32;
u8 data[0]; u8 data[];
} __packed __aligned(PAGE_SIZE); } __packed __aligned(PAGE_SIZE);
struct chsc_sda_area { struct chsc_sda_area {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment