]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
lib: add module support to array-based sort tests
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 8 May 2017 22:55:23 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:10 +0000 (17:15 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Kconfig.debug

index e2a617e09ab78c33e7512c5d6e09d477e6a193e8..de3f7c151320067f144fc48d5a9599b8cfddaecf 100644 (file)
@@ -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.