Skip to contentSkip to conversation

missing statics in atm

PATCH In review Christoph Hellwig 2 participants 2 messages Aug 14, 2004 – Aug 16, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing statics in atm

net/atm/clip.c +2 -2
@@ -47,8 +47,8 @@
 #endif
 
 
-struct net_device *clip_devs = NULL;
-struct atm_vcc *atmarpd = NULL;
+static struct net_device *clip_devs;
+static struct atm_vcc *atmarpd;
 static struct neigh_table clip_tbl;
 static struct timer_list idle_timer;
 static int start_timer = 1;

===== net/atm/ipcommon.h 1.1 vs edited =====

net/atm/ipcommon.h +0 -3
@@ -12,9 +12,6 @@
 #include <linux/netdevice.h>
 #include <linux/atmdev.h>
 
-
-extern struct net_device *clip_devs;
-
 /*
  * Appends all skbs from "from" to "to". The operation is atomic with respect
  * to all other skb operations on "from" or "to".
#1 lore raw
Quoted 4 lines · On Sat, 14 Aug 2004 16:33:24 +0200 Christoph Hellwig <[email protected]> wrote:
net/atm/clip.c +2 -2
-struct net_device *clip_devs = NULL;
-struct atm_vcc *atmarpd = NULL;
+static struct net_device *clip_devs;
+static struct atm_vcc *atmarpd;

...

net/atm/ipcommon.h line 17

Quoted 3 lines
net/atm/ipcommon.h +0 -3
-
-extern struct net_device *clip_devs;
-

Works for me. Patch applied, thanks Christoph.