kernel-hacking-2024-linux-s.../Documentation/crypto
Ahmad Fatoum e8496ad6d8 docs: crypto: async-tx-api: fix broken code example
The code example fails to compile:

  1) addr_conv is defined twice, once as a VLA, which have been phased out

  2) submit is not a pointer, but is still dereferenced with ->

  3) The first call to async_xor() lacked the trailing semicolon

Fix these issues and while at it, fix some code style nitpicks as well:

  1) make the functions static as users are unlikely to export them

  2) include the relevant header

  3) Shorten the example a bit by removing a redundant variable
     definition

Fixes: 04ce9ab385 ("async_xor: permit callers to pass in a 'dma/page scribble' region")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Andre Noll <maan@tuebingen.mpg.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240529-async-dma-docs-v2-1-8faf87e72e6d@pengutronix.de
2024-06-12 15:41:09 -06:00
..
device_drivers crypto: octeontx2 - add devlink option to set t106 mode 2023-12-29 11:25:38 +08:00
api-aead.rst
api-akcipher.rst
api-digest.rst
api-intro.rst
api-kpp.rst
api-rng.rst
api-samples.rst
api-skcipher.rst
api.rst crypto: doc: properly format ToC headings 2023-11-17 13:05:26 -07:00
architecture.rst
asymmetric-keys.rst
async-tx-api.rst docs: crypto: async-tx-api: fix broken code example 2024-06-12 15:41:09 -06:00
crypto_engine.rst
descore-readme.rst
devel-algos.rst crypto: ahash - remove support for nonzero alignmask 2023-10-27 18:04:29 +08:00
index.rst Another moderately busy cycle for documentation, including: 2024-01-11 19:46:52 -08:00
intro.rst
userspace-if.rst