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 /kernel/irq | |
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 'kernel/irq')
-rw-r--r-- | kernel/irq/manage.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index c2741b02ad38..46953a06f4a8 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -261,15 +261,6 @@ void enable_irq(unsigned int irq) | |||
261 | } | 261 | } |
262 | EXPORT_SYMBOL(enable_irq); | 262 | EXPORT_SYMBOL(enable_irq); |
263 | 263 | ||
264 | /* | ||
265 | * [ Not in kernel/irq/handle.c, so that GCC does not | ||
266 | * inline the __weak alias: ] | ||
267 | */ | ||
268 | int __weak arch_init_chip_data(struct irq_desc *desc, int cpu) | ||
269 | { | ||
270 | return 0; | ||
271 | } | ||
272 | |||
273 | static int set_irq_wake_real(unsigned int irq, unsigned int on) | 264 | static int set_irq_wake_real(unsigned int irq, unsigned int on) |
274 | { | 265 | { |
275 | struct irq_desc *desc = irq_to_desc(irq); | 266 | struct irq_desc *desc = irq_to_desc(irq); |