mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
netns: make nla_policy const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
deeb91f59d
commit
3ee5256da0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue