From: stephen hemminger Date: Thu, 1 Sep 2016 06:24:41 +0000 (-0700) Subject: l2tp: make nla_policy const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git l2tp: make nla_policy const Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index 1d02e8d20e56..bf3117771822 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -867,7 +867,7 @@ out: return skb->len; } -static struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX + 1] = { +static const struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX + 1] = { [L2TP_ATTR_NONE] = { .type = NLA_UNSPEC, }, [L2TP_ATTR_PW_TYPE] = { .type = NLA_U16, }, [L2TP_ATTR_ENCAP_TYPE] = { .type = NLA_U16, },