crc32: bolt on crc32c

Reuse the existing crc32 code to stamp out a crc32c implementation.

Signed-off-by: Darrick J. Wong <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Bob Pearson <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Darrick J. Wong 2012-03-23 15:02:25 -07:00 • committed by Linus Torvalds
commit 46c5801eaf
5 changed files with 97 additions and 34 deletions

View file

@ -61,14 +61,14 @@ config CRC_ITU_T
functions require M here.
config CRC32
tristate "CRC32 functions"
tristate "CRC32/CRC32c functions"
default y
select BITREVERSE
help
This option is provided for the case where no in-kernel-tree
modules require CRC32 functions, but a module built outside the
kernel tree does. Such modules that use library CRC32 functions
require M here.
modules require CRC32/CRC32c functions, but a module built outside
the kernel tree does. Such modules that use library CRC32/CRC32c
functions require M here.
config CRC32_SELFTEST
bool "CRC32 perform self test on init"