lib: add module support to crc32 tests

Extract the crc32 test code into its own source file, to allow to
compile it either to a loadable module, or builtin into the kernel.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Geert Uytterhoeven 2017-02-24 15:00:49 -08:00 • committed by Linus Torvalds
commit 5fb7f87408
4 changed files with 858 additions and 826 deletions

View file

@ -103,8 +103,7 @@ config CRC32
functions require M here.
config CRC32_SELFTEST
bool "CRC32 perform self test on init"
default n
tristate "CRC32 perform self test on init"
depends on CRC32
help
This option enables the CRC32 library functions to perform a