summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-08-31 23:24:41 -0700
committerDavid S. Miller <davem@davemloft.net>2016-09-01 14:09:01 -0700
commitf5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b (patch)
tree5f0d1b534a0900e5a06c1327f6a45150787db90d /net/l2tp
parent4f70c96ffd184efabadc322efe6142fe3cd77f27 (diff)
downloadop-kernel-dev-f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b.zip
op-kernel-dev-f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b.tar.gz
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 1d02e8d..bf31177 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, },
OpenPOWER on IntegriCloud