diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-04-06 08:32:12 -0600 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-04-17 17:30:03 +0200 |
commit | 2631c5b6ef9d7c6707e020def6947464c8aa6f92 (patch) | |
tree | 59ef8b70212057d75ddd81f27cf179115416e677 /drivers/net/wireless/mediatek/mt76/tx.c | |
parent | 03eb52dd78cab08f13925aeec8315fbdbcba3253 (diff) | |
download | linux-stable-2631c5b6ef9d7c6707e020def6947464c8aa6f92.tar.gz linux-stable-2631c5b6ef9d7c6707e020def6947464c8aa6f92.tar.bz2 linux-stable-2631c5b6ef9d7c6707e020def6947464c8aa6f92.zip |
wifi: mt76: 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: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/tx.c')
0 files changed, 0 insertions, 0 deletions