Skip to content

Commit

Permalink
lib: add module support to crc32 tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
geertu authored and torvalds committed Feb 25, 2017
1 parent 738bc38 commit 5fb7f87
Show file tree
Hide file tree
Showing 4 changed files with 858 additions and 826 deletions.
3 changes: 1 addition & 2 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ obj-$(CONFIG_CRC16) += crc16.o
obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
obj-$(CONFIG_CRC_ITU_T) += crc-itu-t.o
obj-$(CONFIG_CRC32) += crc32.o
obj-$(CONFIG_CRC32_SELFTEST) += crc32test.o
obj-$(CONFIG_CRC7) += crc7.o
obj-$(CONFIG_LIBCRC32C) += libcrc32c.o
obj-$(CONFIG_CRC8) += crc8.o
Expand Down
Loading

0 comments on commit 5fb7f87

Please sign in to comment.