projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca87bc
)
s390/debug: replace zero-length array with flexible-array member
author
Heiko Carstens
<hca@linux.ibm.com>
Tue, 11 Apr 2023 09:13:01 +0000
(11:13 +0200)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:28 +0000
(17:36 +0200)
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>
arch/s390/kernel/debug.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/debug.c
b/arch/s390/kernel/debug.c
index 221c865785c21c6e97dbd9e78f1e082880be5efa..a85e0c3e7027f84e6f103f22e7786d847c44ca7d 100644
(file)
--- 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 */