From: Geert Uytterhoeven Date: Mon, 8 May 2017 22:55:23 +0000 (-0700) Subject: lib: add module support to array-based sort tests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c4e679898eabca844059743c05253cf33b90e94;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Andy Shevchenko Cc: Arnd Bergmann Cc: Paul Gortmaker Cc: Shuah Khan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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.