public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IRQ: move two IRQ functions from .init.text to .text
@ 2010-03-24 11:59 Henrik Kretzschmar
  2010-03-24 13:06 ` [tip:irq/urgent] genirq: Move " tip-bot for Henrik Kretzschmar
  2010-03-24 13:39 ` tip-bot for Henrik Kretzschmar
  0 siblings, 2 replies; 3+ messages in thread
From: Henrik Kretzschmar @ 2010-03-24 11:59 UTC (permalink / raw)
  To: henne
  Cc: Thomas Gleixner, Ingo Molnar, Yinghai Lu, Peter Zijlstra,
	Jiri Kosina, linux-kernel

Both functions should not be marked as __init, since they can
try to be called from modules after the init section is freed.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
 kernel/irq/chip.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 42ec11b..22a0168 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -716,7 +716,7 @@ set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
 	__set_irq_handler(irq, handle, 0, name);
 }
 
-void __init set_irq_noprobe(unsigned int irq)
+void set_irq_noprobe(unsigned int irq)
 {
 	struct irq_desc *desc = irq_to_desc(irq);
 	unsigned long flags;
@@ -731,7 +731,7 @@ void __init set_irq_noprobe(unsigned int irq)
 	raw_spin_unlock_irqrestore(&desc->lock, flags);
 }
 
-void __init set_irq_probe(unsigned int irq)
+void set_irq_probe(unsigned int irq)
 {
 	struct irq_desc *desc = irq_to_desc(irq);
 	unsigned long flags;
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-24 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 11:59 [PATCH] IRQ: move two IRQ functions from .init.text to .text Henrik Kretzschmar
2010-03-24 13:06 ` [tip:irq/urgent] genirq: Move " tip-bot for Henrik Kretzschmar
2010-03-24 13:39 ` tip-bot for Henrik Kretzschmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox