From: Heiko Carstens Date: Tue, 11 Apr 2023 09:13:01 +0000 (+0200) Subject: s390/debug: replace zero-length array with flexible-array member X-Git-Tag: v6.4-rc1~69^2~33 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ca1382eafae50377088772d6c485ab6b89da2e56;p=users%2Fhch%2Fmisc.git s390/debug: 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 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 Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 221c865785c2..a85e0c3e7027 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -60,7 +60,7 @@ typedef struct { * except of floats, and long long (32 bit) * */ - long args[0]; + long args[]; } debug_sprintf_entry_t; /* internal function prototyes */