From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474AbdB1NJl (ORCPT ); Tue, 28 Feb 2017 08:09:41 -0500 Received: from newton.telenet-ops.be ([195.130.132.45]:59090 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbdB1NJf (ORCPT ); Tue, 28 Feb 2017 08:09:35 -0500 From: Geert Uytterhoeven To: Andrew Morton Cc: Arnd Bergmann , Andy Shevchenko , Paul Gortmaker , Shuah Khan , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] lib: add module support to array-based sort tests Date: Tue, 28 Feb 2017 14:06:58 +0100 Message-Id: <1488287219-15832-3-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488287219-15832-1-git-send-email-geert@linux-m68k.org> References: <1488287219-15832-1-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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