From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438AbdB1NJk (ORCPT ); Tue, 28 Feb 2017 08:09:40 -0500 Received: from leibniz.telenet-ops.be ([195.130.137.77]:33410 "EHLO leibniz.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbdB1NJf (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 1/3] Revert "lib/test_sort.c: make it explicitly non-modular" Date: Tue, 28 Feb 2017 14:06:57 +0100 Message-Id: <1488287219-15832-2-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 This reverts commit 8893f519330bb073a49c5b4676fce4be6f1be15d. It's very valuable to have modular tests, so you can run them just by insmodding the test modules, instead of needing a separate kernel that runs them at boot. Signed-off-by: Geert Uytterhoeven --- lib/test_sort.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/test_sort.c b/lib/test_sort.c index 4db3911db50ace76..d389c1cc2f6cf795 100644 --- a/lib/test_sort.c +++ b/lib/test_sort.c @@ -1,11 +1,8 @@ #include #include -#include +#include -/* - * A simple boot-time regression test - * License: GPL - */ +/* a simple boot-time regression test */ #define TEST_LEN 1000 @@ -41,4 +38,6 @@ static int __init test_sort_init(void) kfree(a); return err; } -subsys_initcall(test_sort_init); + +module_init(test_sort_init); +MODULE_LICENSE("GPL"); -- 2.7.4