Skip to contentSkip to conversation

crypto:scompress: fix kernel-doc warning and spelling error

PATCH New Abdellah Ouhbi 1 participant 1 message Mar 14 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto:scompress: fix kernel-doc warning and spelling error

Fix htmldocs build warning:
./include/crypto/internal/scompress.h:39 struct member 'COMP_ALG_COMMON' not described in 'scomp_alg'

The struct scomp_alg contains an anonymous union member defined by macro COMP_ALG_COMMON that was not documented. Add documentation following the pattern used in other crypto headers for similar anonymous members.

Also fix spelling error in existing comment: "Cmonn" to "Common".

---
 include/crypto/internal/scompress.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/crypto/internal/scompress.h +2 -1
index 6a2c5f2e90f9..f91a2c3487ef 100644
@@ -21,7 +21,8 @@ struct crypto_scomp {
  * @compress:	Function performs a compress operation
  * @decompress:	Function performs a de-compress operation
  * @streams:	Per-cpu memory for algorithm
- * @calg:	Cmonn algorithm data structure shared with acomp
+ * @calg:	Common algorithm data structure shared with acomp
+ * @COMP_ALG_COMMON: see struct comp_alg_common in crypto/acompress.h
  */
 struct scomp_alg {
 	int (*compress)(struct crypto_scomp *tfm, const u8 *src,
Signature · 1 line
2.51.0