diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-12-28 19:01:13 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-29 06:15:49 -0500 |
commit | 43a256322ac1fc105c181b3cade3b9bfc0b63ca1 (patch) | |
tree | 6f4b6fc286451598d20222af8b511fe0a3fcdcfc /init | |
parent | b2e2fe99628c4f944c3075258e536197b5a4f3f8 (diff) |
sparseirq: move __weak symbols into separate compilation unit
GCC has a bug with __weak alias functions: if the functions are in
the same compilation unit as their call site, GCC can decide to
inline them - and thus rob the linker of the opportunity to override
the weak alias with the real thing.
So move all the IRQ handling related __weak symbols to kernel/irq/chip.c.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/init/main.c b/init/main.c index c314aa15370e..2c183abbf61c 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -539,16 +539,6 @@ void __init __weak thread_info_cache_init(void) | |||
539 | { | 539 | { |
540 | } | 540 | } |
541 | 541 | ||
542 | int __init __weak arch_early_irq_init(void) | ||
543 | { | ||
544 | return 0; | ||
545 | } | ||
546 | |||
547 | int __init __weak early_irq_init(void) | ||
548 | { | ||
549 | return arch_early_irq_init(); | ||
550 | } | ||
551 | |||
552 | asmlinkage void __init start_kernel(void) | 542 | asmlinkage void __init start_kernel(void) |
553 | { | 543 | { |
554 | char * command_line; | 544 | char * command_line; |