Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/decompressors: fix spelling mistakes

Fix some spelling mistakes in comments:
sentinal ==> sentinel
compresed ==> compressed
dependeny ==> dependency
immediatelly ==> immediately
dervied ==> derived
splitted ==> split
nore ==> not
independed ==> independent
asumed ==> assumed

Link: https://lkml.kernel.org/r/20210604085656.12257-1-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Zhen Lei and committed by
Linus Torvalds
05911c5d b6c75c4a

+12 -12
+2 -2
lib/decompress_bunzip2.c
··· 80 80 81 81 /* This is what we know about each Huffman coding group */ 82 82 struct group_data { 83 - /* We have an extra slot at the end of limit[] for a sentinal value. */ 83 + /* We have an extra slot at the end of limit[] for a sentinel value. */ 84 84 int limit[MAX_HUFCODE_BITS+1]; 85 85 int base[MAX_HUFCODE_BITS]; 86 86 int permute[MAX_SYMBOLS]; ··· 337 337 pp <<= 1; 338 338 base[i+1] = pp-(t += temp[i]); 339 339 } 340 - limit[maxLen+1] = INT_MAX; /* Sentinal value for 340 + limit[maxLen+1] = INT_MAX; /* Sentinel value for 341 341 * reading next sym. */ 342 342 limit[maxLen] = pp+temp[maxLen]-1; 343 343 base[minLen] = 0;
+1 -1
lib/decompress_unxz.c
··· 23 23 * uncompressible. Thus, we must look for worst-case expansion when the 24 24 * compressor is encoding uncompressible data. 25 25 * 26 - * The structure of the .xz file in case of a compresed kernel is as follows. 26 + * The structure of the .xz file in case of a compressed kernel is as follows. 27 27 * Sizes (as bytes) of the fields are in parenthesis. 28 28 * 29 29 * Stream Header (12)
+2 -2
lib/decompress_unzstd.c
··· 16 16 * uncompressible. Thus, we must look for worst-case expansion when the 17 17 * compressor is encoding uncompressible data. 18 18 * 19 - * The structure of the .zst file in case of a compresed kernel is as follows. 19 + * The structure of the .zst file in case of a compressed kernel is as follows. 20 20 * Maximum sizes (as bytes) of the fields are in parenthesis. 21 21 * 22 22 * Frame Header: (18) ··· 56 56 /* 57 57 * Preboot environments #include "path/to/decompress_unzstd.c". 58 58 * All of the source files we depend on must be #included. 59 - * zstd's only source dependeny is xxhash, which has no source 59 + * zstd's only source dependency is xxhash, which has no source 60 60 * dependencies. 61 61 * 62 62 * When UNZSTD_PREBOOT is defined we declare __decompress(), which is
+1 -1
lib/xz/xz_dec_bcj.c
··· 422 422 423 423 /* 424 424 * Flush pending already filtered data to the output buffer. Return 425 - * immediatelly if we couldn't flush everything, or if the next 425 + * immediately if we couldn't flush everything, or if the next 426 426 * filter in the chain had already returned XZ_STREAM_END. 427 427 */ 428 428 if (s->temp.filtered > 0) {
+4 -4
lib/xz/xz_dec_lzma2.c
··· 147 147 148 148 /* 149 149 * LZMA properties or related bit masks (number of literal 150 - * context bits, a mask dervied from the number of literal 151 - * position bits, and a mask dervied from the number 150 + * context bits, a mask derived from the number of literal 151 + * position bits, and a mask derived from the number 152 152 * position bits) 153 153 */ 154 154 uint32_t lc; ··· 484 484 } 485 485 486 486 /* 487 - * Decode one bit. In some versions, this function has been splitted in three 487 + * Decode one bit. In some versions, this function has been split in three 488 488 * functions so that the compiler is supposed to be able to more easily avoid 489 489 * an extra branch. In this particular version of the LZMA decoder, this 490 490 * doesn't seem to be a good idea (tested with GCC 3.3.6, 3.4.6, and 4.3.3 ··· 761 761 } 762 762 763 763 /* 764 - * Reset the LZMA decoder and range decoder state. Dictionary is nore reset 764 + * Reset the LZMA decoder and range decoder state. Dictionary is not reset 765 765 * here, because LZMA state may be reset without resetting the dictionary. 766 766 */ 767 767 static void lzma_reset(struct xz_dec_lzma2 *s)
+1 -1
lib/zlib_inflate/inffast.c
··· 15 15 unsigned char b[2]; 16 16 }; 17 17 18 - /* Endian independed version */ 18 + /* Endian independent version */ 19 19 static inline unsigned short 20 20 get_unaligned16(const unsigned short *p) 21 21 {
+1 -1
lib/zstd/huf.h
··· 134 134 HUF_repeat_none, /**< Cannot use the previous table */ 135 135 HUF_repeat_check, /**< Can use the previous table but it must be checked. Note : The previous table must have been constructed by HUF_compress{1, 136 136 4}X_repeat */ 137 - HUF_repeat_valid /**< Can use the previous table and it is asumed to be valid */ 137 + HUF_repeat_valid /**< Can use the previous table and it is assumed to be valid */ 138 138 } HUF_repeat; 139 139 /** HUF_compress4X_repeat() : 140 140 * Same as HUF_compress4X_wksp(), but considers using hufTable if *repeat != HUF_repeat_none.