Commit 6ca87bc4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Vasily Gorbik
Browse files

s390/fcx: replace zero-length array with flexible-array member

Zero-length arrays are deprecated [1] and have to be replaced by C99
flexible-array members.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy() and help to make progress towards globally enabling
-fstrict-flex-arrays=3 [2]

Link: https://github.com/KSPP/linux/issues/78 [1]
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html

 [2]
Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZC7XT5prvoE4Yunm@work


Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 3071e9b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ struct tccb_tcat {
 */
struct tccb {
	struct tccb_tcah tcah;
	u8 tca[0];
	u8 tca[];
} __attribute__ ((packed, aligned(8)));

struct tcw *tcw_get_intrg(struct tcw *tcw);