netdev
[Top] [All Lists]

Re: r8169 and 2.4.26 finally working

To: Johannes Petersson <johpe@xxxxxxxxxxxxxxxxxx>
Subject: Re: r8169 and 2.4.26 finally working
From: Francois Romieu <romieu@xxxxxxxxxxxxx>
Date: Sat, 15 May 2004 01:27:14 +0200
Cc: a.nielsen@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <000001c439ca$b0c39040$4500a8c0@freelancer>; from johpe@vimmerbytidning.se on Fri, May 14, 2004 at 05:46:57PM +0200
References: <000001c439ca$b0c39040$4500a8c0@freelancer>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
Johannes Petersson <johpe@xxxxxxxxxxxxxxxxxx> :
[...]
> The patches were tried one at a time to the vanilla sources for the 
> 2.4.26 kernel. The 2.4.26-r8169.c-stable.patch gave the usual error
> about not beeing able to patch the file completely when I applied it to
> the kernel source.
[...]
> The only patched that actually applied without any problems to the 
> kernel was the 20040504-2.4.27-pre1-r8169.c-test.patch from Francois. At
> 
> that time I had some hope. But while compiling the kernel with the 
> 2.4.27-pre1-r8169 patch I got the following compile errors when I issued
> "make bzImage":
> Implicit declaration of netdev_priv

This function requires at least a 2.4.27-pre1 kernel.

Please try a 2.4.27-pre1 kernel or apply the following patch to your
2.4.26 tree before/after 20040504-2.4.27-pre1-r8169.c-test.patch


diff -Nur --show-c-function linux-2.4.26/include/linux/netdevice.h 
linux-2.4.27-pre1/include/linux/netdevice.h
--- linux-2.4.26/include/linux/netdevice.h      2004-02-18 10:36:32.000000000 
-0300
+++ linux-2.4.27-pre1/include/linux/netdevice.h 2004-04-21 19:59:15.000000000 
-0300
@@ -467,6 +468,10 @@ struct packet_type 
        struct packet_type      *next;
 };
 
+static inline void *netdev_priv(struct net_device *dev)
+{
+       return dev->priv;
+}
 
 #include <linux/interrupt.h>
 #include <linux/notifier.h>




<Prev in Thread] Current Thread [Next in Thread>