]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: api - use designated initializers for report structs
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 8 May 2026 10:57:17 +0000 (12:57 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:48 +0000 (18:08 +0800)
commit6b261b9bae589b8bbcaca5ededc0caf0b2f3a0af
tree93bb57c0186b3183515aed8ce1e9487fb45e2a53
parentc36faca103a685590281412e47df74b550f71886
crypto: api - use designated initializers for report structs

Use designated initializers for the report structs instead of clearing
the struct with memset() and then copying fixed strings with strscpy()
at runtime.

This keeps the structs zero-initialized, lets the compiler diagnose
oversized string literals, and makes the code easier to read.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
12 files changed:
crypto/acompress.c
crypto/aead.c
crypto/ahash.c
crypto/akcipher.c
crypto/crypto_user.c
crypto/kpp.c
crypto/lskcipher.c
crypto/rng.c
crypto/scompress.c
crypto/shash.c
crypto/sig.c
crypto/skcipher.c