tcp: make nla_policy const
authorstephen hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2016 22:21:37 +0000 (15:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 21:09:01 +0000 (14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c

index b617826..bf1f3b2 100644 (file)
@@ -751,7 +751,7 @@ static struct genl_family tcp_metrics_nl_family = {
        .netnsok        = true,
 };
 
-static struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {
+static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {
        [TCP_METRICS_ATTR_ADDR_IPV4]    = { .type = NLA_U32, },
        [TCP_METRICS_ATTR_ADDR_IPV6]    = { .type = NLA_BINARY,
                                            .len = sizeof(struct in6_addr), },