Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1333381
| From | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm/compaction: don't use modular references for non modular code |
| Date | 2016-02-13 23:50 +0100 |
| Message-ID | <r1RaN-2zh-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
replace module_init with subsys_initcall ; which will be two levels earlier, but mm smells like a subsystem to me. Compile tested only. Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> --- [Feel free to squash this into the original, if desired.] mm/compaction.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index 4cb1c2ef5abb..4d99e1f5055c 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -20,7 +20,6 @@ #include <linux/kasan.h> #include <linux/kthread.h> #include <linux/freezer.h> -#include <linux/module.h> #include "internal.h" #ifdef CONFIG_COMPACTION @@ -1954,7 +1953,6 @@ static int __init kcompactd_init(void) hotcpu_notifier(cpu_callback, 0); return 0; } - -module_init(kcompactd_init) +subsys_initcall(kcompactd_init) #endif /* CONFIG_COMPACTION */ -- 2.6.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] mm/compaction: don't use modular references for non modular code Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-02-13 23:50 +0100
csiph-web