Thread (23 messages) 23 messages, 2 authors, 2015-07-31

[patch 20/20] powerpc/cell: Prepare iic_ioexc_cascade for irq argument removal

From: Thomas Gleixner <hidden>
Date: 2015-07-13 20:50:40

The irq argument of most interrupt flow handlers is unused or merily
used instead of a local variable. The handlers which need the irq
argument can retrieve the irq number from the irq descriptor.

Search and update was done with coccinelle and the invaluable help of
Julia Lawall.

Signed-off-by: Thomas Gleixner <redacted>
Cc: Julia Lawall <redacted>
Cc: Jiang Liu <redacted>
---
 arch/powerpc/platforms/cell/interrupt.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: tip/arch/powerpc/platforms/cell/interrupt.c
===================================================================
--- tip.orig/arch/powerpc/platforms/cell/interrupt.c
+++ tip/arch/powerpc/platforms/cell/interrupt.c
@@ -99,8 +99,9 @@ static void iic_ioexc_eoi(struct irq_dat
 {
 }
 
-static void iic_ioexc_cascade(unsigned int irq, struct irq_desc *desc)
+static void iic_ioexc_cascade(unsigned int __irq, struct irq_desc *desc)
 {
+	unsigned int irq = irq_desc_get_irq(desc);
 	struct irq_chip *chip = irq_desc_get_chip(desc);
 	struct cbe_iic_regs __iomem *node_iic =
 		(void __iomem *)irq_desc_get_handler_data(desc);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help