diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-07-15 12:19:41 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-08-22 12:35:27 -0400 |
commit | e77b7041258e11ba198951553d3acf1e371a9053 (patch) | |
tree | 3e181594d02fad7d55b3d188c4742b0167d0651c | |
parent | 379d9ecb3cc9d5d043216185904c00e54c736a96 (diff) |
rcu: Don't use modular infrastructure in non-modular code
The Kconfig currently controlling compilation of tree.c is:
init/Kconfig:config TREE_RCU
init/Kconfig: bool
...and update.c and sync.c are "obj-y" meaning that none are ever
built as a module by anyone.
Since MODULE_ALIAS is a no-op for non-modular code, we can remove
them from these files.
We leave moduleparam.h behind since the files instantiate some boot
time configuration parameters with module_param() still.
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/tree.c | 2 | ||||
-rw-r--r-- | kernel/rcu/update.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index cc1779a7ec5f..e83446062f65 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/export.h> | 41 | #include <linux/export.h> |
42 | #include <linux/completion.h> | 42 | #include <linux/completion.h> |
43 | #include <linux/moduleparam.h> | 43 | #include <linux/moduleparam.h> |
44 | #include <linux/module.h> | ||
45 | #include <linux/percpu.h> | 44 | #include <linux/percpu.h> |
46 | #include <linux/notifier.h> | 45 | #include <linux/notifier.h> |
47 | #include <linux/cpu.h> | 46 | #include <linux/cpu.h> |
@@ -60,7 +59,6 @@ | |||
60 | #include "tree.h" | 59 | #include "tree.h" |
61 | #include "rcu.h" | 60 | #include "rcu.h" |
62 | 61 | ||
63 | MODULE_ALIAS("rcutree"); | ||
64 | #ifdef MODULE_PARAM_PREFIX | 62 | #ifdef MODULE_PARAM_PREFIX |
65 | #undef MODULE_PARAM_PREFIX | 63 | #undef MODULE_PARAM_PREFIX |
66 | #endif | 64 | #endif |
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index f0d8322bc3ec..f19271dce0a9 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #include <linux/export.h> | 46 | #include <linux/export.h> |
47 | #include <linux/hardirq.h> | 47 | #include <linux/hardirq.h> |
48 | #include <linux/delay.h> | 48 | #include <linux/delay.h> |
49 | #include <linux/module.h> | 49 | #include <linux/moduleparam.h> |
50 | #include <linux/kthread.h> | 50 | #include <linux/kthread.h> |
51 | #include <linux/tick.h> | 51 | #include <linux/tick.h> |
52 | 52 | ||
@@ -54,7 +54,6 @@ | |||
54 | 54 | ||
55 | #include "rcu.h" | 55 | #include "rcu.h" |
56 | 56 | ||
57 | MODULE_ALIAS("rcupdate"); | ||
58 | #ifdef MODULE_PARAM_PREFIX | 57 | #ifdef MODULE_PARAM_PREFIX |
59 | #undef MODULE_PARAM_PREFIX | 58 | #undef MODULE_PARAM_PREFIX |
60 | #endif | 59 | #endif |