Skip to content

Commit b40fa82

Browse files
tchardingherbertx
authored andcommitted
crypto: doc - clear htmldocs build warnings for crypto/hash
SPHINX build emits multiple warnings of kind: warning: duplicate section name 'Note' (when building kernel via make target 'htmldocs') This is caused by repeated use of comments of form: * Note: soau soaeusoa uoe We can change the format without loss of clarity and clear the build warnings. Add '**[mandatory]**' or '**[optional]**' as kernel-doc field element description prefix This renders in HTML as (prefixes in bold) final [mandatory] Retrieve result from the driver. This function finalizes the transformation and retrieves the resulting hash from the driver and pushes it back to upper layers. No data processing happens at this point unless hardware requires it to finish the transformation (then the data buffered by the device driver is processed). Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent c9a3ff8 commit b40fa82

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎include/crypto/hash.h‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ struct ahash_request {
7171

7272
/**
7373
* struct ahash_alg - asynchronous message digest definition
74-
* @init: Initialize the transformation context. Intended only to initialize the
74+
* @init: **[mandatory]** Initialize the transformation context. Intended only to initialize the
7575
* state of the HASH transformation at the beginning. This shall fill in
7676
* the internal structures used during the entire duration of the whole
7777
* transformation. No data processing happens at this point.
78-
* Note: mandatory.
79-
* @update: Push a chunk of data into the driver for transformation. This
78+
* @update: **[mandatory]** Push a chunk of data into the driver for transformation. This
8079
* function actually pushes blocks of data from upper layers into the
8180
* driver, which then passes those to the hardware as seen fit. This
8281
* function must not finalize the HASH transformation by calculating the
@@ -85,20 +84,17 @@ struct ahash_request {
8584
* context, as this function may be called in parallel with the same
8685
* transformation object. Data processing can happen synchronously
8786
* [SHASH] or asynchronously [AHASH] at this point.
88-
* Note: mandatory.
89-
* @final: Retrieve result from the driver. This function finalizes the
87+
* @final: **[mandatory]** Retrieve result from the driver. This function finalizes the
9088
* transformation and retrieves the resulting hash from the driver and
9189
* pushes it back to upper layers. No data processing happens at this
9290
* point unless hardware requires it to finish the transformation
9391
* (then the data buffered by the device driver is processed).
94-
* Note: mandatory.
95-
* @finup: Combination of @update and @final. This function is effectively a
92+
* @finup: **[optional]** Combination of @update and @final. This function is effectively a
9693
* combination of @update and @final calls issued in sequence. As some
9794
* hardware cannot do @update and @final separately, this callback was
9895
* added to allow such hardware to be used at least by IPsec. Data
9996
* processing can happen synchronously [SHASH] or asynchronously [AHASH]
10097
* at this point.
101-
* Note: optional.
10298
* @digest: Combination of @init and @update and @final. This function
10399
* effectively behaves as the entire chain of operations, @init,
104100
* @update and @final issued in sequence. Just like @finup, this was

0 commit comments

Comments
 (0)