diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-05-01 21:57:34 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-06-16 14:12:35 -0400 |
commit | 4c7217f1f0fe70af7b9e213ef16f1d2f4a4bacaf (patch) | |
tree | 921c3d707548094af93b8b8bc07918283b80d88f /lib/list_sort.c | |
parent | 89f08f64408b630df7d559223f63e616d0814509 (diff) | |
download | linux-stable-4c7217f1f0fe70af7b9e213ef16f1d2f4a4bacaf.tar.gz linux-stable-4c7217f1f0fe70af7b9e213ef16f1d2f4a4bacaf.tar.bz2 linux-stable-4c7217f1f0fe70af7b9e213ef16f1d2f4a4bacaf.zip |
lib/list_sort: use late_initcall to hook in self tests
This was using module_init, but there is no way this code can
be modular. In the non-modular case, a module_init becomes a
device_initcall, but this really isn't a device. So we should
choose a more appropriate initcall bucket to put it in.
Assuming boot time self tests need to be observed over a console
to be useful, and that the console device could possibly not be
fully functional until after device_initcall, we move this to the
late_initcall bucket, which is immediately after device_initcall.
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'lib/list_sort.c')
-rw-r--r-- | lib/list_sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/list_sort.c b/lib/list_sort.c index b29015102698..3fe401067e20 100644 --- a/lib/list_sort.c +++ b/lib/list_sort.c @@ -289,5 +289,5 @@ exit: kfree(elts); return err; } -module_init(list_sort_test); +late_initcall(list_sort_test); #endif /* CONFIG_TEST_LIST_SORT */ |