aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2017-05-08 15:55:23 -0700
committerLinus Torvalds <[email protected]>2017-05-08 17:15:10 -0700
commit5c4e679898eabca844059743c05253cf33b90e94 (patch)
tree6193433f7850df2345bbec25ab7fdb8f5f861fcb
parentebd03a9aacc7d47a9d5dc7ed63adf594f9a0391c (diff)
lib: add module support to array-based sort tests
Allow to compile the array-based sort test code 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]> Cc: Arnd Bergmann <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--lib/Kconfig.debug7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e2a617e09ab7..de3f7c151320 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1728,10 +1728,11 @@ config TEST_LIST_SORT
If unsure, say N.
config TEST_SORT
- bool "Array-based sort test"
- depends on DEBUG_KERNEL
+ tristate "Array-based sort test"
+ depends on DEBUG_KERNEL || m
help
- This option enables the self-test function of 'sort()' at boot.
+ This option enables the self-test function of 'sort()' at boot,
+ or at module load time.
If unsure, say N.