From: stephen hemminger Date: Fri, 1 Oct 2010 13:58:00 +0000 (+0000) Subject: gre: protocol table can be static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ddcb4541e917780ef7ccc68dd8df18ca0bc055d0;p=linux.git gre: protocol table can be static This table is only used in gre.c Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/ipv4/gre.c b/net/ipv4/gre.c index b546736da2e19..caea6885fdbd0 100644 --- a/net/ipv4/gre.c +++ b/net/ipv4/gre.c @@ -22,7 +22,7 @@ #include -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)