crypto: hifn_795x - Silence gcc format-truncation false positive warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2023 15:08:17 +0000 (23:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Oct 2023 05:39:26 +0000 (13:39 +0800)
commitca06ef976ea1cdae363dda508cc9c6502fd0dcd7
tree971044bcd423c91f3781d7d1dcefbdc885098f7a
parent87d6621c07d230d9168a021f2760062f2262e8b9
crypto: hifn_795x - 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/hifn_795x.c