]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: add missing kernel-doc for anonymous union members
authorKit Dallege <xaum.io@gmail.com>
Sun, 15 Mar 2026 14:57:22 +0000 (15:57 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 22 Mar 2026 02:17:59 +0000 (11:17 +0900)
Document the anonymous SKCIPHER_ALG_COMMON and COMP_ALG_COMMON struct
members in skcipher_alg, scomp_alg, and acomp_alg, following the
existing pattern used by HASH_ALG_COMMON in shash_alg.

This fixes the following kernel-doc warnings:

  include/crypto/skcipher.h:166: struct member 'SKCIPHER_ALG_COMMON' not described in 'skcipher_alg'
  include/crypto/internal/scompress.h:39: struct member 'COMP_ALG_COMMON' not described in 'scomp_alg'
  include/crypto/internal/acompress.h:55: struct member 'COMP_ALG_COMMON' not described in 'acomp_alg'

Signed-off-by: Kit Dallege <xaum.io@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/acompress.h
include/crypto/internal/scompress.h
include/crypto/skcipher.h

index 9a3f28baa8043b1e1964b9b3a4327d163275566d..9cd37df32dc40a952cc5c94322448eb446ce797c 100644 (file)
@@ -42,6 +42,7 @@
  *
  * @base:      Common crypto API algorithm data structure
  * @calg:      Cmonn algorithm data structure shared with scomp
+ * @COMP_ALG_COMMON: see struct comp_alg_common
  */
 struct acomp_alg {
        int (*compress)(struct acomp_req *req);
index 6a2c5f2e90f954153797582fb0c383783690b7a9..13a0851a995b4a638ac81c254586e00f4301ec8f 100644 (file)
@@ -22,6 +22,7 @@ struct crypto_scomp {
  * @decompress:        Function performs a de-compress operation
  * @streams:   Per-cpu memory for algorithm
  * @calg:      Cmonn algorithm data structure shared with acomp
+ * @COMP_ALG_COMMON: see struct comp_alg_common
  */
 struct scomp_alg {
        int (*compress)(struct crypto_scomp *tfm, const u8 *src,
index 9e5853464345bffae55103e79a276c7f614e2b62..4efe2ca8c4d100f055fb22188cf16a0e922839fd 100644 (file)
@@ -145,6 +145,7 @@ struct skcipher_alg_common SKCIPHER_ALG_COMMON;
  *           considerably more efficient if it can operate on multiple chunks
  *           in parallel. Should be a multiple of chunksize.
  * @co: see struct skcipher_alg_common
+ * @SKCIPHER_ALG_COMMON: see struct skcipher_alg_common
  *
  * All fields except @ivsize are mandatory and must be filled.
  */