From: stephen hemminger Date: Wed, 31 Aug 2016 22:21:37 +0000 (-0700) Subject: tcp: make nla_policy const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f70c96ffd184efabadc322efe6142fe3cd77f27;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tcp: make nla_policy const Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index b617826e2477..bf1f3b2b29d1 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), },