lib: add module support to crc32 tests
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 24 Feb 2017 23:00:49 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:57 +0000 (17:46 -0800)
commit5fb7f87408f1534f2c3fadb876dc429cca601104
treedd644a277506cc29b3fd69c6ed0a63f4a88a0f03
parent738bc38d49e017fe7acb3596712518e22c225816
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/1483470276-10517-1-git-send-email-geert@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Kconfig
lib/Makefile
lib/crc32.c
lib/crc32test.c [new file with mode: 0644]