From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
Shuah Khan <shuah@kernel.org>,
linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH 2/3] lib: add module support to array-based sort tests
Date: Tue, 28 Feb 2017 14:06:58 +0100 [thread overview]
Message-ID: <1488287219-15832-3-git-send-email-geert@linux-m68k.org> (raw)
In-Reply-To: <1488287219-15832-1-git-send-email-geert@linux-m68k.org>
Allow to compile the array-based sort test code either to a loadable
module, or builtin into the kernel.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
lib/Kconfig.debug | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 55735c9bdb75a23e..90b2348777495b72 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1740,10 +1740,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.
--
2.7.4
next prev parent reply other threads:[~2017-02-28 13:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 13:06 [PATCH 0/3] lib: add module support to sort tests Geert Uytterhoeven
2017-02-28 13:06 ` [PATCH 1/3] Revert "lib/test_sort.c: make it explicitly non-modular" Geert Uytterhoeven
2017-02-28 14:24 ` Andy Shevchenko
2017-02-28 15:24 ` Geert Uytterhoeven
2017-02-28 13:06 ` Geert Uytterhoeven [this message]
2017-02-28 13:06 ` [PATCH 3/3] lib: add module support to linked list sorting tests Geert Uytterhoeven
2017-02-28 14:28 ` Arnd Bergmann
2017-02-28 14:43 ` Geert Uytterhoeven
2017-02-28 14:28 ` [PATCH 0/3] lib: add module support to sort tests Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488287219-15832-3-git-send-email-geert@linux-m68k.org \
--to=geert@linux-m68k.org \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.gortmaker@windriver.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).