mirror of https://gitee.com/openkylin/linux.git
gre: protocol table can be static
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>
This commit is contained in:
parent
94d57c4cfa
commit
ddcb4541e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue