From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, Paul Gortmaker <paul.gortmaker@windriver.com>,
Vlastimil Babka <vbabka@suse.cz>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] mm/compaction: don't use modular references for non modular code
Date: Sat, 13 Feb 2016 17:47:34 -0500 [thread overview]
Message-ID: <1455403654-28951-1-git-send-email-paul.gortmaker@windriver.com> (raw)
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: <linux-kernel@vger.kernel.org>
Cc: <linux-mm@kvack.org>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
Vlastimil Babka <vbabka@suse.cz>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] mm/compaction: don't use modular references for non modular code
Date: Sat, 13 Feb 2016 17:47:34 -0500 [thread overview]
Message-ID: <1455403654-28951-1-git-send-email-paul.gortmaker@windriver.com> (raw)
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
next reply other threads:[~2016-02-13 22:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 22:47 Paul Gortmaker [this message]
2016-02-13 22:47 ` [PATCH] mm/compaction: don't use modular references for non modular code Paul Gortmaker
2016-03-02 9:22 ` Vlastimil Babka
2016-03-02 9:22 ` Vlastimil Babka
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=1455403654-28951-1-git-send-email-paul.gortmaker@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=vbabka@suse.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.