diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-04-17 01:23:38 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-04-17 01:23:38 +1000 |
commit | c6fc98b587064afac57355cfd81cad959822bd68 (patch) | |
tree | 22583e3f070f7801a2ec96961570a85f38b12e20 /lib | |
parent | 28745ff81f807ad63ef01f59aabc1eb9bb308554 (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/1488287219-15832-3-git-send-email-geert@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 97d62c2da6c2..22dd8721d7c2 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1727,10 +1727,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. |