diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2023-04-11 11:17:42 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-04-13 17:36:29 +0200 |
commit | 469c701db198227c2354b7c37f2c73dbfee5e065 (patch) | |
tree | ded7e4e5d17528ae1463e4667d8488fb189939b9 /drivers/s390/char/sclp_cmd.c | |
parent | ca1382eafae50377088772d6c485ab6b89da2e56 (diff) | |
download | lwn-469c701db198227c2354b7c37f2c73dbfee5e065.tar.gz lwn-469c701db198227c2354b7c37f2c73dbfee5e065.zip |
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: https://github.com/KSPP/linux/issues/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>
Diffstat (limited to 'drivers/s390/char/sclp_cmd.c')
-rw-r--r-- | drivers/s390/char/sclp_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c index 15971997cfe2..3c87057436d5 100644 --- a/drivers/s390/char/sclp_cmd.c +++ b/drivers/s390/char/sclp_cmd.c @@ -241,7 +241,7 @@ struct attach_storage_sccb { u16 :16; u16 assigned; u32 :32; - u32 entries[0]; + u32 entries[]; } __packed; static int sclp_attach_storage(u8 id) |