aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/softirq.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-12-28 19:01:13 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-29 06:15:49 -0500
commit43a256322ac1fc105c181b3cade3b9bfc0b63ca1 (patch)
tree6f4b6fc286451598d20222af8b511fe0a3fcdcfc /kernel/softirq.c
parentb2e2fe99628c4f944c3075258e536197b5a4f3f8 (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 'kernel/softirq.c')
-rw-r--r--kernel/softirq.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c
index e7c69a720d69..daf46358d2dd 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -797,3 +797,23 @@ int on_each_cpu(void (*func) (void *info), void *info, int wait)
797} 797}
798EXPORT_SYMBOL(on_each_cpu); 798EXPORT_SYMBOL(on_each_cpu);
799#endif 799#endif
800
801/*
802 * [ These __weak aliases are kept in a separate compilation unit, so that
803 * GCC does not inline them incorrectly. ]
804 */
805
806int __init __weak early_irq_init(void)
807{
808 return 0;
809}
810
811int __init __weak arch_early_irq_init(void)
812{
813 return 0;
814}
815
816int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
817{
818 return 0;
819}