OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c473463
)
mpls: rtm_mpls_policy[] can be static
author
Wu Fengguang
<fengguang.wu@intel.com>
Wed, 4 Mar 2015 21:33:54 +0000
(
05:33
+0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 Mar 2015 21:39:45 +0000
(16:39 -0500)
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c
patch
|
blob
|
history
diff --git
a/net/mpls/af_mpls.c
b/net/mpls/af_mpls.c
index
75a994a
..
23e51d1
100644
(file)
--- a/
net/mpls/af_mpls.c
+++ b/
net/mpls/af_mpls.c
@@
-216,7
+216,7
@@
static struct packet_type mpls_packet_type __read_mostly = {
.func = mpls_forward,
};
-const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
+
static
const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
[RTA_DST] = { .type = NLA_U32 },
[RTA_OIF] = { .type = NLA_U32 },
};