提交 ddcb4541 编写于 作者: S stephen hemminger 提交者: David S. Miller

gre: protocol table can be static

This table is only used in gre.c
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 94d57c4c
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <net/gre.h> #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); static DEFINE_SPINLOCK(gre_proto_lock);
int gre_add_protocol(const struct gre_protocol *proto, u8 version) int gre_add_protocol(const struct gre_protocol *proto, u8 version)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册