Skip to content

Commit badae6b

Browse files
committed
arc/irq: Prepare idu_cascade_isr for irq argument removal
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 <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Vineet Gupta <[email protected]>
1 parent d7185a9 commit badae6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arc/kernel/mcip.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ static struct irq_chip idu_irq_chip = {
252252

253253
static int idu_first_irq;
254254

255-
static void idu_cascade_isr(unsigned int core_irq, struct irq_desc *desc)
255+
static void idu_cascade_isr(unsigned int __core_irq, struct irq_desc *desc)
256256
{
257257
struct irq_domain *domain = irq_desc_get_handler_data(desc);
258+
unsigned int core_irq = irq_desc_get_irq(desc);
258259
unsigned int idu_irq;
259260

260261
idu_irq = core_irq - idu_first_irq;

0 commit comments

Comments
 (0)