Commit 3ee5256d authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

netns: make nla_policy const

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent deeb91f5
...@@ -533,7 +533,7 @@ static struct pernet_operations __net_initdata net_ns_ops = { ...@@ -533,7 +533,7 @@ static struct pernet_operations __net_initdata net_ns_ops = {
.exit = net_ns_net_exit, .exit = net_ns_net_exit,
}; };
static struct nla_policy rtnl_net_policy[NETNSA_MAX + 1] = { static const struct nla_policy rtnl_net_policy[NETNSA_MAX + 1] = {
[NETNSA_NONE] = { .type = NLA_UNSPEC }, [NETNSA_NONE] = { .type = NLA_UNSPEC },
[NETNSA_NSID] = { .type = NLA_S32 }, [NETNSA_NSID] = { .type = NLA_S32 },
[NETNSA_PID] = { .type = NLA_U32 }, [NETNSA_PID] = { .type = NLA_U32 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment