gre: protocol table can be static
authorstephen hemminger <shemminger@vyatta.com>
Fri, 1 Oct 2010 13:58:00 +0000 (13:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Oct 2010 04:50:51 +0000 (21:50 -0700)
This table is only used in gre.c

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre.c

index b546736da2e19754f6f92932abd3043f409b04ec..caea6885fdbd0810ea3e8d9eeefd5f74282a0930 100644 (file)
@@ -22,7 +22,7 @@
 #include <net/gre.h>
 
 
-const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
+static const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
 static DEFINE_SPINLOCK(gre_proto_lock);
 
 int gre_add_protocol(const struct gre_protocol *proto, u8 version)