aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-05-05 11:05:40 -0400
committerThomas Gleixner <tglx@linutronix.de>2012-05-08 07:55:20 -0400
commit6c0a9fa62feb7e9fdefa9720bcc03040c9b0b311 (patch)
tree0c91586d2bfc7184ea2b13004147f3ef4753733d /kernel/fork.c
parent0a6ba092d1c8c75ae0c0617ef7f4e6f5043af311 (diff)
fork: Remove the weak insanity
We error out when compiling with gcc4.1.[01] as it miscompiles __weak. The workaround with magic defines is not longer necessary. Make it __weak again. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20120505150141.306358267@linutronix.de
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b9372a0bff18..a79b36e2e912 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -203,13 +203,7 @@ void __put_task_struct(struct task_struct *tsk)
203} 203}
204EXPORT_SYMBOL_GPL(__put_task_struct); 204EXPORT_SYMBOL_GPL(__put_task_struct);
205 205
206/* 206void __init __weak arch_task_cache_init(void) { }
207 * macro override instead of weak attribute alias, to workaround
208 * gcc 4.1.0 and 4.1.1 bugs with weak attribute and empty functions.
209 */
210#ifndef arch_task_cache_init
211#define arch_task_cache_init()
212#endif
213 207
214void __init fork_init(unsigned long mempages) 208void __init fork_init(unsigned long mempages)
215{ 209{