Skip to content

Commit

Permalink
gre: protocol table can be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Oct 4, 2010
1 parent 94d57c4 commit ddcb454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ddcb454

Please sign in to comment.