]> Pileus Git - ~andy/linux/blobdiff - kernel/fork.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux...
[~andy/linux] / kernel / fork.c
index 44a18192c420e85dd3ef8f904cbd9e1db573b553..89fe414645e9b76aa777a0de7b5e9d6777814a0f 100644 (file)
@@ -132,9 +132,13 @@ void __put_task_struct(struct task_struct *tsk)
                free_task(tsk);
 }
 
-void __attribute__((weak)) arch_task_cache_init(void)
-{
-}
+/*
+ * macro override instead of weak attribute alias, to workaround
+ * gcc 4.1.0 and 4.1.1 bugs with weak attribute and empty functions.
+ */
+#ifndef arch_task_cache_init
+#define arch_task_cache_init()
+#endif
 
 void __init fork_init(unsigned long mempages)
 {