Re: [PATCH 3/3] Makes lguest's irq handler typesafe

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jgarzik@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Ash Willis <ashwillis@...>, <linux-pcmcia@...>, <virtualization@...>, Tejun Heo <htejun@...>
Date: Friday, January 18, 2008 - 6:17 pm

On Saturday 19 January 2008 07:45:41 Jeff Garzik wrote:

The compiler checks types, and we should use it (though note that when I 
typesafed the kthread code I didn't find any bugs, so safety arguments must 
be muted).  The gratuitous casts back and forth are annoying and silly.

The compatibility nightmare is one reason for the previous patch (which you  
didn't understand, I hope it's now clear).


True, but this is not about performance.  It's about making code simpler and 
compiler-checkable.

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

Messages in current thread:
[PATCH 1/3] Improve type handling in interrupt handlers, Rusty Russell, (Fri Jan 18, 4:22 pm)
[PATCH 2/3] Make IRQ handlers typesafe., Rusty Russell, (Fri Jan 18, 4:25 pm)
Re: [PATCH 2/3] Make IRQ handlers typesafe., Jeff Garzik, (Fri Jan 18, 4:43 pm)
[PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 4:27 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 7:12 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 9:28 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 9:40 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Fri Jan 18, 9:44 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 11:59 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Tejun Heo, (Sat Jan 19, 12:08 am)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Sat Jan 19, 7:27 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Jeff Garzik, (Fri Jan 18, 4:45 pm)
Re: [PATCH 3/3] Makes lguest's irq handler typesafe, Rusty Russell, (Fri Jan 18, 6:17 pm)