aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/zstd.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-07-03 19:19:34 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2025-07-10 20:15:41 +1200
commit25f4e1d7193d1438715bb0f05b6aa8df3f7b434f (patch)
treee318e130c998e94cce195b904675733f8e71f54e /crypto/zstd.c
parent03ba056e63d3b2d3774c7a8cf40f5a31b968b612 (diff)
downloadnet-25f4e1d7193d1438715bb0f05b6aa8df3f7b434f.tar.gz
crypto: zstd - replace zero-length array with flexible array member
Replace the deprecated zero-length array with a modern flexible array member in the struct zstd_ctx. No functional changes intended. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/zstd.c')
-rw-r--r--crypto/zstd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/zstd.c b/crypto/zstd.c
index 24edb4d616b56d..ebeadc1f3b5fda 100644
--- a/crypto/zstd.c
+++ b/crypto/zstd.c
@@ -25,7 +25,7 @@ struct zstd_ctx {
zstd_dctx *dctx;
size_t wksp_size;
zstd_parameters params;
- u8 wksp[0] __aligned(8);
+ u8 wksp[] __aligned(8);
};
static DEFINE_MUTEX(zstd_stream_lock);