diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-08-31 15:21:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 14:09:01 -0700 |
commit | 4f70c96ffd184efabadc322efe6142fe3cd77f27 (patch) | |
tree | 875c8daa432a049425f4fc92ce6cd6f6b90e5690 /net/ipv4/tcp_metrics.c | |
parent | 6501f34ff702d5edb0f3c6fb5170b852350ba8cb (diff) | |
download | op-kernel-dev-4f70c96ffd184efabadc322efe6142fe3cd77f27.zip op-kernel-dev-4f70c96ffd184efabadc322efe6142fe3cd77f27.tar.gz |
tcp: 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/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index b617826..bf1f3b2 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c @@ -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), }, |