diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-08-31 18:17:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 17:09:00 -0400 |
commit | 3ee5256da092a4047e54dc36e4d6d45ca49652a6 (patch) | |
tree | 871bc897fdd8dcd4fac82922659725afd7af8a49 | |
parent | deeb91f59dbcdcb8044c6109b3d7b11448d9a72d (diff) |
netns: make nla_policy const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/net_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 1fe58167d39a..7a77dcabd4e8 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c | |||
@@ -533,7 +533,7 @@ static struct pernet_operations __net_initdata net_ns_ops = { | |||
533 | .exit = net_ns_net_exit, | 533 | .exit = net_ns_net_exit, |
534 | }; | 534 | }; |
535 | 535 | ||
536 | static struct nla_policy rtnl_net_policy[NETNSA_MAX + 1] = { | 536 | static const struct nla_policy rtnl_net_policy[NETNSA_MAX + 1] = { |
537 | [NETNSA_NONE] = { .type = NLA_UNSPEC }, | 537 | [NETNSA_NONE] = { .type = NLA_UNSPEC }, |
538 | [NETNSA_NSID] = { .type = NLA_S32 }, | 538 | [NETNSA_NSID] = { .type = NLA_S32 }, |
539 | [NETNSA_PID] = { .type = NLA_U32 }, | 539 | [NETNSA_PID] = { .type = NLA_U32 }, |