Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: caam - Provide the name of the function and provide missing descriptions

Fixes the following W=1 kernel build warning(s):

drivers/crypto/caam/caampkc.c:199: warning: expecting prototype for from a given scatterlist(). Prototype was for caam_rsa_count_leading_zeros() instead
drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member 'xts_key_fallback' not described in 'caam_ctx'
drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member 'fallback' not described in 'caam_ctx'

Cc: "Horia Geantă" <horia.geanta@nxp.com>
Cc: Aymen Sghaier <aymen.sghaier@nxp.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Lee Jones and committed by
Herbert Xu
0beb2b60 71057841

+5 -1
+3
drivers/crypto/caam/caamalg_qi2.c
··· 71 71 * @adata: authentication algorithm details 72 72 * @cdata: encryption algorithm details 73 73 * @authsize: authentication tag (a.k.a. ICV / MAC) size 74 + * @xts_key_fallback: true if fallback tfm needs to be used due 75 + * to unsupported xts key lengths 76 + * @fallback: xts fallback tfm 74 77 */ 75 78 struct caam_ctx { 76 79 struct caam_flc flc[NUM_OP];
+2 -1
drivers/crypto/caam/caampkc.c
··· 187 187 } 188 188 189 189 /** 190 - * Count leading zeros, need it to strip, from a given scatterlist 190 + * caam_rsa_count_leading_zeros - Count leading zeros, need it to strip, 191 + * from a given scatterlist 191 192 * 192 193 * @sgl : scatterlist to count zeros from 193 194 * @nbytes: number of zeros, in bytes, to strip