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.h | |
parent | ca1382eafae50377088772d6c485ab6b89da2e56 (diff) | |
download | linux-stable-469c701db198227c2354b7c37f2c73dbfee5e065.tar.gz linux-stable-469c701db198227c2354b7c37f2c73dbfee5e065.tar.bz2 linux-stable-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.h')
-rw-r--r-- | drivers/s390/char/sclp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h index 909ba7f08688..6a23ec286c70 100644 --- a/drivers/s390/char/sclp.h +++ b/drivers/s390/char/sclp.h @@ -204,7 +204,7 @@ struct read_storage_sccb { u16 assigned; u16 standby; u16 :16; - u32 entries[0]; + u32 entries[]; } __packed; static inline void sclp_fill_core_info(struct sclp_core_info *info, |