crypto: des - fix all kernel-doc warnings
PATCH 1/1 crypto: des - fix all kernel-doc warnings
Use correct function parameter names and add Returns: sections to eliminate all kernel-doc warnings in des.h:
Warning: include/crypto/des.h:41 function parameter 'keylen' not
described in 'des_expand_key'
Warning: include/crypto/des.h:41 No description found for return value
of 'des_expand_key'
Warning: include/crypto/des.h:54 function parameter 'keylen' not
described in 'des3_ede_expand_key'
Warning: include/crypto/des.h:54 No description found for return value
of 'des3_ede_expand_key'
---
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>
include/crypto/des.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
include/crypto/des.h +4 -4
@@ -34,9 +34,9 @@ void des3_ede_decrypt(const struct des3_* des_expand_key - Expand a DES input key into a key schedule * @ctx: the key schedule * @key: buffer containing the input key -* @len: size of the buffer contents +* @keylen: size of the buffer contents * -* Returns 0 on success, -EINVAL if the input key is rejected and -ENOKEY if +* Returns: 0 on success, -EINVAL if the input key is rejected and -ENOKEY if * the key is accepted but has been found to be weak. */ int des_expand_key (struct des_ctx *ctx,const u8 *key,unsigned int keylen);
@@ -45,9 +45,9 @@ int des_expand_key(struct des_ctx *ctx,* des3_ede_expand_key - Expand a triple DES input key into a key schedule * @ctx: the key schedule * @key: buffer containing the input key -* @len: size of the buffer contents +* @keylen: size of the buffer contents * -* Returns 0 on success, -EINVAL if the input key is rejected and -ENOKEY if +* Returns: 0 on success, -EINVAL if the input key is rejected and -ENOKEY if * the key is accepted but has been found to be weak. Note that weak keys will * be rejected (and -EINVAL will be returned) when running in FIPS mode. */
Herbert Xu
maintainerQuoted 12 lines · Randy Dunlap
Use correct function parameter names and add Returns: sections to eliminate all kernel-doc warnings in
des.h:Warning:
include/crypto/des.h:41function parameter 'keylen' not
described in 'des_expand_key'
Warning:include/crypto/des.h:41No description found for return value
of 'des_expand_key'
Warning:include/crypto/des.h:54function parameter 'keylen' not
described in 'des3_ede_expand_key'
Warning:include/crypto/des.h:54No description found for return value
of 'des3_ede_expand_key'
Quoted 7 lines
Signed-off-by Randy Dunlap <[email protected]>---
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>include/crypto/des.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt