projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94d57c4
)
gre: protocol table can be static
author
stephen hemminger
<shemminger@vyatta.com>
Fri, 1 Oct 2010 13:58:00 +0000
(13:58 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 4 Oct 2010 04:50:51 +0000
(21:50 -0700)
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>
net/ipv4/gre.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/gre.c
b/net/ipv4/gre.c
index b546736da2e19754f6f92932abd3043f409b04ec..caea6885fdbd0810ea3e8d9eeefd5f74282a0930 100644
(file)
--- a/
net/ipv4/gre.c
+++ b/
net/ipv4/gre.c
@@
-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)