Subject: Re: [patch] 2.4 lacks dummy SET_NETDEV_DEV

From: Pekka Pietikainen <[email-masked]>
Date: Tue, 2 Dec 2003 12:40:25 +0200

On Mon, Nov 10, 2003 at 10:14:29PM -0800, David S. Miller wrote:
> On Tue, 11 Nov 2003 00:14:30 +0200
> Pekka Pietikainen <[email-masked]> wrote:
> 
> > (I still like the idea of being able to use exactly the same driver
> > source on 2.4/2.6 though)
> 
> I agree, someone should merge in the dummy SET_NETDEV_DEV once
> Marcelo starts up 2.4.24-preX
Ping :-)

--- linux-2.4.22-1.2115.nptl/include/linux/netdevice.h.orig	2003-11-10 20:08:42.922635848 +0200
+++ linux-2.4.22-1.2115.nptl/include/linux/netdevice.h	2003-11-10 20:09:09.754556776 +0200
@@ -456,6 +456,8 @@
 #endif /* CONFIG_NET_DIVERT */
 };
 
+/* 2.6 compatibility */
+#define SET_NETDEV_DEV(net, pdev) do { } while (0)
 
 struct packet_type 
 {

-- 
Pekka Pietikainen