Commit 97a0efea authored by Tom Levy's avatar Tom Levy Committed by Linus Torvalds
Browse files

include/linux/lz4.h: fix spelling and copy-paste errors in documentation

Fix a few spelling and grammar errors, and two places where fast/safe in
the documentation did not match the function.

Link: http://lkml.kernel.org/r/20190321014452.13297-1-tomlevy93@gmail.com


Signed-off-by: default avatarTom Levy <tomlevy93@gmail.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Jiri Kosina <trivial@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a318f12e
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -278,7 +278,7 @@ int LZ4_decompress_fast(const char *source, char *dest, int originalSize);
 * @compressedSize: is the precise full size of the compressed block
 * @compressedSize: is the precise full size of the compressed block
 * @maxDecompressedSize: is the size of 'dest' buffer
 * @maxDecompressedSize: is the size of 'dest' buffer
 *
 *
 * Decompresses data fom 'source' into 'dest'.
 * Decompresses data from 'source' into 'dest'.
 * If the source stream is detected malformed, the function will
 * If the source stream is detected malformed, the function will
 * stop decoding and return a negative result.
 * stop decoding and return a negative result.
 * This function is protected against buffer overflow exploits,
 * This function is protected against buffer overflow exploits,
@@ -522,7 +522,7 @@ int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode,
	const char *dictionary, int dictSize);
	const char *dictionary, int dictSize);


/**
/**
 * LZ4_decompress_fast_continue() - Decompress blocks in streaming mode
 * LZ4_decompress_safe_continue() - Decompress blocks in streaming mode
 * @LZ4_streamDecode: the 'LZ4_streamDecode_t' structure
 * @LZ4_streamDecode: the 'LZ4_streamDecode_t' structure
 * @source: source address of the compressed data
 * @source: source address of the compressed data
 * @dest: output buffer address of the uncompressed data
 * @dest: output buffer address of the uncompressed data
@@ -530,7 +530,7 @@ int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode,
 * @compressedSize: is the precise full size of the compressed block
 * @compressedSize: is the precise full size of the compressed block
 * @maxDecompressedSize: is the size of 'dest' buffer
 * @maxDecompressedSize: is the size of 'dest' buffer
 *
 *
 * These decoding function allows decompression of multiple blocks
 * This decoding function allows decompression of multiple blocks
 * in "streaming" mode.
 * in "streaming" mode.
 * Previously decoded blocks *must* remain available at the memory position
 * Previously decoded blocks *must* remain available at the memory position
 * where they were decoded (up to 64 KB)
 * where they were decoded (up to 64 KB)
@@ -569,7 +569,7 @@ int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode,
 *	which must be already allocated with 'originalSize' bytes
 *	which must be already allocated with 'originalSize' bytes
 * @originalSize: is the original and therefore uncompressed size
 * @originalSize: is the original and therefore uncompressed size
 *
 *
 * These decoding function allows decompression of multiple blocks
 * This decoding function allows decompression of multiple blocks
 * in "streaming" mode.
 * in "streaming" mode.
 * Previously decoded blocks *must* remain available at the memory position
 * Previously decoded blocks *must* remain available at the memory position
 * where they were decoded (up to 64 KB)
 * where they were decoded (up to 64 KB)
@@ -610,10 +610,10 @@ int LZ4_decompress_fast_continue(LZ4_streamDecode_t *LZ4_streamDecode,
 * @dictStart: pointer to the start of the dictionary in memory
 * @dictStart: pointer to the start of the dictionary in memory
 * @dictSize: size of dictionary
 * @dictSize: size of dictionary
 *
 *
 * These decoding function works the same as
 * This decoding function works the same as
 * a combination of LZ4_setStreamDecode() followed by
 * a combination of LZ4_setStreamDecode() followed by
 * LZ4_decompress_safe_continue()
 * LZ4_decompress_safe_continue()
 * It is stand-alone, and don'tn eed a LZ4_streamDecode_t structure.
 * It is stand-alone, and doesn't need an LZ4_streamDecode_t structure.
 *
 *
 * Return: number of bytes decompressed into destination buffer
 * Return: number of bytes decompressed into destination buffer
 *	(necessarily <= maxDecompressedSize)
 *	(necessarily <= maxDecompressedSize)
@@ -633,10 +633,10 @@ int LZ4_decompress_safe_usingDict(const char *source, char *dest,
 * @dictStart: pointer to the start of the dictionary in memory
 * @dictStart: pointer to the start of the dictionary in memory
 * @dictSize: size of dictionary
 * @dictSize: size of dictionary
 *
 *
 * These decoding function works the same as
 * This decoding function works the same as
 * a combination of LZ4_setStreamDecode() followed by
 * a combination of LZ4_setStreamDecode() followed by
 * LZ4_decompress_safe_continue()
 * LZ4_decompress_fast_continue()
 * It is stand-alone, and don'tn eed a LZ4_streamDecode_t structure.
 * It is stand-alone, and doesn't need an LZ4_streamDecode_t structure.
 *
 *
 * Return: number of bytes decompressed into destination buffer
 * Return: number of bytes decompressed into destination buffer
 *	(necessarily <= maxDecompressedSize)
 *	(necessarily <= maxDecompressedSize)