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

From: Rusty Russell
Date: Fri Jan 18 2008 - 23:00:29 EST


On Saturday 19 January 2008 12:44:52 Tejun Heo wrote:
> Tejun Heo wrote:
> > so I think the question is "do we want to change all callbacks to
> > take native pointer type instead of void pointer?".
>
> Lemme clarity myself a bit. I'm not saying that we should convert all
> at once or literally every callback should be converted. What I'm
> saying is whether we're headed that way in general and converting big
> ones - timer for example - and getting the conversion agreed upon should
> be enough to set the norm.

Hi Tejun

There are three possibilities: (1) force everyone to use void *, (2) force
everyone to be type-correct, (3) allow both with some tricks. Currently
we're on (1). For kthread, with only dozens of users, I chose (2) (very
simple, easy to understand). I think for widespread things like timer and
interrupt handlers, I think (3) is the right way to go.

I wanted to get this patch out there and see what the reaction was. I can
do timers next, if that's going to add fuel to the discussion.

Thanks!
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/