summaryrefslogtreecommitdiff
path: root/net/l2tp/l2tp_netlink.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-01 09:24:41 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-02 00:09:01 +0300
commitf5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b (patch)
tree5f0d1b534a0900e5a06c1327f6a45150787db90d /net/l2tp/l2tp_netlink.c
parent4f70c96ffd184efabadc322efe6142fe3cd77f27 (diff)
downloadlinux-f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b.tar.xz
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/l2tp_netlink.c')
-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, },