From: stephen hemminger Date: Wed, 31 Aug 2016 22:17:49 +0000 (-0700) Subject: netns: make nla_policy const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ee5256da092a4047e54dc36e4d6d45ca49652a6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git netns: make nla_policy const Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- 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 = { .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_NSID] = { .type = NLA_S32 }, [NETNSA_PID] = { .type = NLA_U32 },