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 /include/linux | |
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 'include/linux')
-rw-r--r-- | include/linux/interrupt.h | 6 | ||||
-rw-r--r-- | include/linux/irq.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 777f89e00b4a..d9a370325ae2 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -467,4 +467,10 @@ static inline void init_irq_proc(void) | |||
467 | 467 | ||
468 | int show_interrupts(struct seq_file *p, void *v); | 468 | int show_interrupts(struct seq_file *p, void *v); |
469 | 469 | ||
470 | struct irq_desc; | ||
471 | |||
472 | extern int early_irq_init(void); | ||
473 | extern int arch_early_irq_init(void); | ||
474 | extern int arch_init_chip_data(struct irq_desc *desc, int cpu); | ||
475 | |||
470 | #endif | 476 | #endif |
diff --git a/include/linux/irq.h b/include/linux/irq.h index 0e40af4bac40..d64a6d49bdef 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -193,9 +193,6 @@ struct irq_desc { | |||
193 | const char *name; | 193 | const char *name; |
194 | } ____cacheline_internodealigned_in_smp; | 194 | } ____cacheline_internodealigned_in_smp; |
195 | 195 | ||
196 | extern int early_irq_init(void); | ||
197 | extern int arch_early_irq_init(void); | ||
198 | extern int arch_init_chip_data(struct irq_desc *desc, int cpu); | ||
199 | extern void arch_init_copy_chip_data(struct irq_desc *old_desc, | 196 | extern void arch_init_copy_chip_data(struct irq_desc *old_desc, |
200 | struct irq_desc *desc, int cpu); | 197 | struct irq_desc *desc, int cpu); |
201 | extern void arch_free_chip_data(struct irq_desc *old_desc, struct irq_desc *desc); | 198 | extern void arch_free_chip_data(struct irq_desc *old_desc, struct irq_desc *desc); |