Skip to contentSkip to conversation

doc: crypto: warning cleanup

PATCH In review Jonathan Corbet 2 participants 4 messages Aug 23, 2015 – Aug 24, 2015

Subsystems (2)
lore
Share & tools
lore

Jonathan Corbet

author maintainer
#0 lore raw

PATCH 1/1 doc: crypto: warning cleanup

Fix up a missing field description and a misdirected doc inclusion to make a couple of warnings go away.

---
 Documentation/DocBook/crypto-API.tmpl | 2 +-
 include/crypto/aead.h                 | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Documentation/DocBook/crypto-API.tmpl +1 -1
index 0992531ffefb..980bcc994913 100644
@@ -1687,7 +1687,7 @@ read(opfd, out, outlen);
 !Pinclude/linux/crypto.h Block Cipher Algorithm Definitions
 !Finclude/linux/crypto.h crypto_alg
 !Finclude/linux/crypto.h ablkcipher_alg
-!Finclude/linux/crypto.h aead_alg
+!Finclude/crypto/aead.h aead_alg
 !Finclude/linux/crypto.h blkcipher_alg
 !Finclude/linux/crypto.h cipher_alg
 !Finclude/crypto/rng.h rng_alg
include/crypto/aead.h +1 -0
index 7169ad04acc0..88c6cdf3a886 100644
@@ -120,6 +120,7 @@ struct aead_givcrypt_request {
  * @exit: Deinitialize the cryptographic transformation object. This is a
  *	  counterpart to @init, used to remove various changes set in
  *	  @init.
+ * @base: Common crypto API algorithm data structure
  *
  * All fields except @ivsize is mandatory and must be filled.
  */
Signature · 1 line
2.4.3
#1 lore raw

Am Sonntag, 23. August 2015, 13:51:01 schrieb Jonathan Corbet:

Hi Jonathan,

Quoted 15 lines

Fix up a missing field description and a misdirected doc inclusion to make a couple of warnings go away.

---
Documentation/DocBook/crypto-API.tmpl | 2 +-
include/crypto/aead.h | 1 +

2 files changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/Documentation/DocBook/crypto-API.tmpl index 0992531ffefb..980bcc994913 100644

Documentation/DocBook/crypto-API.tmpl +0 -0
@@ -1687,7 +1687,7 @@ read(opfd, out, outlen);
Quoted 5 lines

!Pinclude/linux/crypto.h Block Cipher Algorithm Definitions !Finclude/linux/crypto.h crypto_alg !Finclude/linux/crypto.h ablkcipher_alg -!Finclude/linux/crypto.h aead_alg +!Finclude/crypto/aead.h aead_alg

This one is already in the cryptodev-2.6 kernel.

Quoted 1 line

From now on, I will always CC the linux-doc mailing list on patches pertaining

the crypto documentation so that you can see the patches too.

include/crypto/aead.h struct aead_givcrypt_request { · line 123

Quoted 12 lines

!Finclude/linux/crypto.h blkcipher_alg
!Finclude/linux/crypto.h cipher_alg
!Finclude/crypto/rng.h rng_alg

include/crypto/aead.h +1 -0
index 7169ad04acc0..88c6cdf3a886 100644
@@ -120,6 +120,7 @@ struct aead_givcrypt_request {
 * @exit: Deinitialize the cryptographic transformation object. This is a
 *	  counterpart to @init, used to remove various changes set in
 *	  @init.
+ * @base: Common crypto API algorithm data structure

I am wondering: does this really fix the issue? I tried it and it failed (i.e. still produced errors by the parser) due to the exotic definition in of this variable in the C code.

include/crypto/aead.h struct aead_givcrypt_request { · line 126

Quoted 3 lines
include/crypto/aead.h +0 -0
 *
 * All fields except @ivsize is mandatory and must be filled.
 */

Ciao
Stephan

author maintainer
#2 lore raw
Quoted 4 lines · On Mon, 24 Aug 2015 06:51:35 +0200 Stephan Mueller <[email protected]> wrote:

This one is already in the cryptodev-2.6 kernel.

From now on, I will always CC the linux-doc mailing list on patches pertaining the crypto documentation so that you can see the patches too.

Ah, OK, I should have peeked at linux-next first.

Quoted 5 lines
Quoted 1 line

+ * @base: Common crypto API algorithm data structure

I am wondering: does this really fix the issue? I tried it and it failed (i.e. still produced errors by the parser) due to the exotic definition in of this variable in the C code.

It fixes part of the issue. The other required a change to kernel-doc, which I've posted separately to linux-doc and plan to put in for 4.3.

Thanks,

jon

#3 lore raw

Am Montag, 24. August 2015, 02:03:42 schrieb Jonathan Corbet:

Hi Jonathan,

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

+ * @base: Common crypto API algorithm data structure

I am wondering: does this really fix the issue? I tried it and it failed (i.e. still produced errors by the parser) due to the exotic definition in of this variable in the C code.

It fixes part of the issue. The other required a change to kernel-doc, which I've posted separately to linux-doc and plan to put in for 4.3.

Thank you. Does that change also fixes the bug report for include/crypto/hash.h?

Warning(include/crypto/hash.h:188): No description found for parameter 'hash_alg_common))))'

For the updated documentation:

Ciao
Stephan