diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-08-31 23:24:41 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 14:09:01 -0700 |
commit | f5bb341e1d1af7722a73fa8c96ca8c9a91f85e5b (patch) | |
tree | 5f0d1b534a0900e5a06c1327f6a45150787db90d /net/l2tp/l2tp_netlink.c | |
parent | 4f70c96ffd184efabadc322efe6142fe3cd77f27 (diff) |
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.c | 2 |
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, }, |