Skip to contentSkip to conversation

genirq: cleanup: remove fastcall

PATCH In review Ingo Molnar 1 participant 1 message May 17, 2006 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 3/50 genirq: cleanup: remove fastcall

From: Ingo Molnar <[email protected]>

now that i386 defaults to regparm, explicit uses of fastcall are not needed anymore.

---
 include/linux/irq.h |   11 ++++++++---
 kernel/irq/handle.c |    4 ++--
 2 files changed, 10 insertions(+), 5 deletions(-)
include/linux/irq.h +8 -3
Index: linux-genirq.q/include/linux/irq.h
===================================================================
@@ -162,11 +162,16 @@ static inline void set_irq_info(int irq,
 extern int no_irq_affinity;
 extern int noirqdebug_setup(char *str);
 
-extern fastcall int handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
-					struct irqaction *action);
+extern int handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
+			    struct irqaction *action);
+
+/*
+ * Explicit fastcall, because i386 4KSTACKS calls it from assembly:
+ */
 extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs);
+
 extern void note_interrupt(unsigned int irq, irq_desc_t *desc,
-					int action_ret, struct pt_regs *regs);
+			   int action_ret, struct pt_regs *regs);
 extern int can_request_irq(unsigned int irq, unsigned long irqflags);
 
 extern void init_irq_proc(void);
kernel/irq/handle.c +2 -2
Index: linux-genirq.q/kernel/irq/handle.c
===================================================================
@@ -79,8 +79,8 @@ irqreturn_t no_action(int cpl, void *dev
 /*
  * Have got an event to handle:
  */
-fastcall int handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
-				struct irqaction *action)
+int handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
+		     struct irqaction *action)
 {
 	int ret, retval = 0, status = 0;