login
Header Space

 
 

[PATCH 2/6 v2] MIPS: ip27-timer: unsigned irq to evaluate allocate_irqno()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Bogendoerfer <tsbogend@...>
Cc: <ralf@...>, <linux-mips@...>, lkml <linux-kernel@...>
Date: Wednesday, April 16, 2008 - 11:09 am

Thomas Bogendoerfer wrote:
 

Ok, thanks, It should be right, but I cannot test this (no hardware).
---
when allocate_irqno() returns a negative error value, but is stored in an
unsigned variable 'irq', the test '(irq < 0)' won't work.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/arch/mips/sgi-ip27/ip27-timer.c b/arch/mips/sgi-ip27/ip27-timer.c
index 25d3baf..9cebc9e 100644
--- a/arch/mips/sgi-ip27/ip27-timer.c
+++ b/arch/mips/sgi-ip27/ip27-timer.c
@@ -158,7 +158,7 @@ static void rt_set_mode(enum clock_event_mode mode,
 	}
 }
 
-unsigned int rt_timer_irq;
+int rt_timer_irq;
 
 static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)
 {
@@ -219,7 +219,7 @@ static void __cpuinit hub_rt_clock_event_init(void)
 
 static void __init hub_rt_clock_event_global_init(void)
 {
-	unsigned int irq;
+	int irq;
 
 	do {
 		smp_wmb();

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/6] MIPS: ip27-timer: fix unsigned irq &lt; 0, Thomas Bogendoerfer, (Wed Apr 16, 5:15 am)
[PATCH 2/6 v2] MIPS: ip27-timer: unsigned irq to evaluate al..., Roel Kluin, (Wed Apr 16, 11:09 am)
Re: [PATCH 2/6 v2] MIPS: ip27-timer: unsigned irq to evaluat..., Thomas Bogendoerfer, (Wed Apr 16, 6:27 pm)
speck-geostationary