crypto: ccree - Silence gcc format-truncation false positive warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:25:48 +0000 (18:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Nov 2023 11:16:28 +0000 (19:16 +0800)
commit588a90ac252c7cd0434859e749eeed1f8e5a1f90
treea1e0a63253ffb6a593a1ce5243a8bce16eb33970
parent6d51b9ae4d5e43457f459222d9105e683ae15a0c
crypto: ccree - Silence gcc format-truncation false positive warnings

The heuristics used by gcc triggers false positive truncation
warnings in hifn_alg_alloc.  The warning triggered by the strings
here are clearly false positives (see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95755).

Add checks on snprintf calls to silence these warnings, including
the one for cra_driver_name even though it does not currently trigger
a gcc warning.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_aead.c
drivers/crypto/ccree/cc_cipher.c