s390/fcx: replace zero-length array with flexible-array member
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 6 Apr 2023 14:29:35 +0000 (08:29 -0600)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:28 +0000 (17:36 +0200)
commit6ca87bc4c8eee464cc13259aaf6881d8df3f86f9
treeccd5b219f5f499eef874a8c2742b67c7fbfaa595
parent3071e9b39106e1b9576584a372f446c23b258e3f
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
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZC7XT5prvoE4Yunm@work
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/fcx.h