netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: "David S. Miller" <davem@redhat.com>
Cc: jes@wildopensource.com, jgarzik@pobox.com, netdev@oss.sgi.com
Subject: Re: [PATCH 2.5.70] acenic -- update to use alloc_etherdev
Date: Wed, 11 Jun 2003 22:44:37 -0700	[thread overview]
Message-ID: <3EE81345.6080009@osdl.org> (raw)
In-Reply-To: <20030611.210445.21901735.davem@redhat.com>

David S. Miller wrote:

>   From: Jes Sorensen <jes@wildopensource.com>
>   Date: 11 Jun 2003 18:21:09 -0400
>
>   >>>>> "Stephen" == Stephen Hemminger <shemminger@osdl.org> writes:
>   
>   Stephen> Updated acenic driver to use alloc_etherdev to hold private
>   Stephen> data structure.  Uses register_netdev() to get the name right
>   Stephen> this time ;-)
>   
>   Please provide a compat macro for 2.4.18 and younger as well.
>
>How actively are you maintaining acenic. Jes?  :-)  This is
>a very serious question, I haven't seen a 2.5.x change go back
>to 2.4.x since it's inception.
>
>All this compat nonsense is becoming useless.  Other drivers
>fair just fine 2.4.x/2.5.x without all this ifdef mumbo-jumbo
>that litters acenic.c and makes it nearly impossible to read.
>
>In fact all these localized compat macros make acenic.c HARDER
>to maintain.
>  
>
The funny thing is this alloc_etherdev patch did not change the 
compatiablity one bit.
Just for grins, took the 2.5 driver back into the 2.4.18 and it doesn't 
build.
The problem is it doesn't know what irqreturn_t is.  The enclosed
cribbed from atm/he.c fixes that, but it still redefines local_irq_save etc.

Maybe it is time to stop the insanity.

diff -Nru a/drivers/net/acenic.c b/drivers/net/acenic.c
--- a/drivers/net/acenic.c    Wed Jun 11 22:36:43 2003
+++ b/drivers/net/acenic.c    Wed Jun 11 22:36:43 2003
@@ -188,6 +188,13 @@
 #define ACE_MOD_DEC_USE_COUNT        do{} while(0)
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,69)
+typedef void irqreturn_t;
+#define IRQ_NONE
+#define IRQ_HANDLED
+#define IRQ_RETVAL(x)
+#endif
+
 #ifndef SET_NETDEV_DEV
 #define SET_NETDEV_DEV(net, pdev)    do{} while(0)
 #endif

  parent reply	other threads:[~2003-06-12  5:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 21:42 [PATCH 2.5.70] acenic -- update to use alloc_etherdev Stephen Hemminger
2003-06-11 22:21 ` Jes Sorensen
2003-06-12  4:04   ` David S. Miller
     [not found]     ` <3EE81263.4040205@osdl.org>
2003-06-12  5:43       ` David S. Miller
2003-06-12 17:05       ` Jes Sorensen
2003-06-12  5:44     ` Stephen Hemminger [this message]
2003-06-12 17:01     ` Jes Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EE81345.6080009@osdl.org \
    --to=shemminger@osdl.org \
    --cc=davem@redhat.com \
    --cc=jes@wildopensource.com \
    --cc=jgarzik@pobox.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).