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

lib/crc32: update the comments of crc32_{be,le}_generic()

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Gu Zheng and committed by
Linus Torvalds
f2e1d2ac 5ab58acc

+11 -6
+11 -6
lib/crc32.c
··· 131 131 #endif 132 132 133 133 /** 134 - * crc32_le() - Calculate bitwise little-endian Ethernet AUTODIN II CRC32 135 - * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for 136 - * other uses, or the previous crc32 value if computing incrementally. 137 - * @p: pointer to buffer over which CRC is run 134 + * crc32_le_generic() - Calculate bitwise little-endian Ethernet AUTODIN II 135 + * CRC32/CRC32C 136 + * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for other 137 + * uses, or the previous crc32/crc32c value if computing incrementally. 138 + * @p: pointer to buffer over which CRC32/CRC32C is run 138 139 * @len: length of buffer @p 140 + * @tab: little-endian Ethernet table 141 + * @polynomial: CRC32/CRC32c LE polynomial 139 142 */ 140 143 static inline u32 __pure crc32_le_generic(u32 crc, unsigned char const *p, 141 144 size_t len, const u32 (*tab)[256], ··· 204 201 EXPORT_SYMBOL(__crc32c_le); 205 202 206 203 /** 207 - * crc32_be() - Calculate bitwise big-endian Ethernet AUTODIN II CRC32 204 + * crc32_be_generic() - Calculate bitwise big-endian Ethernet AUTODIN II CRC32 208 205 * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for 209 206 * other uses, or the previous crc32 value if computing incrementally. 210 - * @p: pointer to buffer over which CRC is run 207 + * @p: pointer to buffer over which CRC32 is run 211 208 * @len: length of buffer @p 209 + * @tab: big-endian Ethernet table 210 + * @polynomial: CRC32 BE polynomial 212 211 */ 213 212 static inline u32 __pure crc32_be_generic(u32 crc, unsigned char const *p, 214 213 size_t len, const u32 (*tab)[256],