summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-01 08:24:41 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-01 23:09:01 +0200
commitf5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b (patch)
tree5f0d1b534a0900e5a06c1327f6a45150787db90d /net/l2tp
parenttcp: make nla_policy const (diff)
downloadlinux-f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b.tar.xz
linux-f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b.zip
l2tp: make nla_policy const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_netlink.c2
1 files changed, 1 insertions, 1 deletions
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, },