Re: [PATCH] restore libata build on frv

From: David Woodhouse
Date: Tue Sep 26 2006 - 16:22:24 EST

On Tue, 2006-09-26 at 09:15 -0700, Linus Torvalds wrote:
> That NO_IRQ thing should be zero, and any architecture that thinks that
> zero is a valid IRQ just needs to fix its own irq mapping so that the
> "cookie" doesn't work.

> The thing is, it's zero. Get over it.

Signed-off-by: David Woodhouse <dwmw2@xxxxxxxxxxxxx>

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 92be519..0cdf8ad 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -219,7 +219,7 @@ int setup_irq(unsigned int irq, struct i
unsigned long flags;
int shared = 0;

- if (irq >= NR_IRQS)
+ if (!irq || irq >= NR_IRQS)
return -EINVAL;

if (desc->chip == &no_irq_chip)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at