| To: | Arjan van de Ven <arjanv@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [Prism54-devel] Re: [PATCH 5/14 linux-2.6.7-rc1] prism54: new prism54 kernel compatibility |
| From: | mcgrof@xxxxxxxxxxxxxxxxxxxx (Luis R. Rodriguez) |
| Date: | Fri, 28 May 2004 18:15:20 -0400 |
| Cc: | "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxxxxxx>, Jeff Garzik <jgarzik@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, prism54-devel@xxxxxxxxxxx |
| In-reply-to: | <1085388830.2780.9.camel@xxxxxxxxxxxxxxxxx> |
| Mail-followup-to: | Arjan van de Ven <arjanv@xxxxxxxxxx>, "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxxxxxx>, Jeff Garzik <jgarzik@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, prism54-devel@xxxxxxxxxxx |
| Organization: | Rutgers University Student Linux Users Group |
| References: | <20040524083220.GF3330@xxxxxxxxxxxxxxxxxx> <1085388830.2780.9.camel@xxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
On Mon, May 24, 2004 at 10:53:50AM +0200, Arjan van de Ven wrote:
> On Mon, 2004-05-24 at 10:32, Luis R. Rodriguez wrote:
> > 2004-03-20 Margit Schubert-While <margitsw@xxxxxxxxxxx>
> >
> > * isl_38xx.[ch], isl_ioctl.c, islpci_dev.[ch], islpci_eth.c
> > islpci_hotplug.c, islpci_mgt.[ch], oid_mgt.c: Adopt new
> > prism54 kernel compatibility.
> >
> > * prismcompat.h, prismcompat24.h: New compatibility work
>
>
> ewwww this makes the driver quite a bit less readable!
>
> for example
>
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
> - /* This is 2.6 specific, nicer, shorter, but not in 2.4 yet */
> - DEFINE_WAIT(wait);
> - prepare_to_wait(&priv->reset_done, &wait, TASK_UNINTERRUPTIBLE);
> -#else
> - DECLARE_WAITQUEUE(wait, current);
> - set_current_state(TASK_UNINTERRUPTIBLE);
> - add_wait_queue(&priv->reset_done, &wait);
> -#endif
> + PRISM_DEFWAITQ(priv->reset_done, wait)
>
> why not just make a DEFINE_WAIT() and prepare_to_wait() macro for 2.4
> instead ?? so that you can just have the 2.6 version in the code and do
> 2.4 compat in a clean header, as opposed to fouling up the entire driver
> with it.
Thanks for the comment Arjan. This will be fixed.
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [netdrvr ixgb] massive update, Francois Romieu |
|---|---|
| Next by Date: | Re: r8169 driver in 2.6.6, Francois Romieu |
| Previous by Thread: | Re: [PATCH 5/14 linux-2.6.7-rc1] prism54: new prism54 kernel compatibility, Arjan van de Ven |
| Next by Thread: | [PATCH 11/14 linux-2.6.7-rc1] prism54: Touched up kernel compatibility, Luis R. Rodriguez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |