Skip to contentSkip to conversation

gre: protocol table can be static

PATCH Applied Stephen Hemminger 2 participants 2 messages Oct 1, 2010 – Oct 4, 2010

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

PATCH 1/1 gre: protocol table can be static

This table is only used in gre.c

net/ipv4/gre.c +1 -1
@@ -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)

[