diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2023-04-11 11:13:01 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-04-13 17:36:28 +0200 |
commit | ca1382eafae50377088772d6c485ab6b89da2e56 (patch) | |
tree | 83cc1f3169a090efd0b34bc6505121d516a8bf04 | |
parent | 6ca87bc4c8eee464cc13259aaf6881d8df3f86f9 (diff) | |
download | lwn-ca1382eafae50377088772d6c485ab6b89da2e56.tar.gz lwn-ca1382eafae50377088772d6c485ab6b89da2e56.zip |
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 <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>
-rw-r--r-- | arch/s390/kernel/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |