Commit 2adee9b30d1382fba97825b9c50e4f50a0117c36
Committed by
Ingo Molnar
1 parent
1679f2710a
Exists in
master
and in
7 other branches
x86: fpu xstate split fix
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Showing 2 changed files with 8 additions and 3 deletions Side-by-side Diff
include/asm-x86/thread_info.h
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | extern void arch_task_cache_init(void); |
10 | 10 | extern void free_thread_info(struct thread_info *ti); |
11 | 11 | extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); |
12 | +#define arch_task_cache_init arch_task_cache_init | |
12 | 13 | #endif |
13 | 14 | #endif /* _ASM_X86_THREAD_INFO_H */ |
kernel/fork.c
... | ... | @@ -132,9 +132,13 @@ |
132 | 132 | free_task(tsk); |
133 | 133 | } |
134 | 134 | |
135 | -void __attribute__((weak)) arch_task_cache_init(void) | |
136 | -{ | |
137 | -} | |
135 | +/* | |
136 | + * macro override instead of weak attribute alias, to workaround | |
137 | + * gcc 4.1.0 and 4.1.1 bugs with weak attribute and empty functions. | |
138 | + */ | |
139 | +#ifndef arch_task_cache_init | |
140 | +#define arch_task_cache_init() | |
141 | +#endif | |
138 | 142 | |
139 | 143 | void __init fork_init(unsigned long mempages) |
140 | 144 | { |