diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2017-09-09 01:35:55 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-09-26 23:01:20 +0200 |
commit | 8a29896a6e31c7aa2ca3b50d8aefe05f280b0b7e (patch) | |
tree | 8ef874d134297f6543ec7498739958b709aa44d4 /lib/crc32.c | |
parent | docs: highres: fix broken urls (diff) | |
download | linux-8a29896a6e31c7aa2ca3b50d8aefe05f280b0b7e.tar.xz linux-8a29896a6e31c7aa2ca3b50d8aefe05f280b0b7e.zip |
docs: clean up and add rest of CRC functions to kernel-api.rst
Add the rest of the CRC library functions to kernel-api.
- try to clarify crc32() by adding '@' to a function parameter
- reorder kernel-api CRC functions to be less random
- add more CRC functions to kernel-api
- correct the function parameter names in several places
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'lib/crc32.c')
-rw-r--r-- | lib/crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crc32.c b/lib/crc32.c index 6ddc92bc1460..2ef20fe84b69 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -225,7 +225,7 @@ static u32 __attribute_const__ gf2_multiply(u32 x, u32 y, u32 modulus) } /** - * crc32_generic_shift - Append len 0 bytes to crc, in logarithmic time + * crc32_generic_shift - Append @len 0 bytes to crc, in logarithmic time * @crc: The original little-endian CRC (i.e. lsbit is x^31 coefficient) * @len: The number of bytes. @crc is multiplied by x^(8*@len) * @polynomial: The modulus used to reduce the result to 32 bits. |