From: stephen hemminger <stephen@networkplumber.org>
Date: Wed, 31 Aug 2016 22:19:37 +0000 (-0700)
Subject: fou: make nla_policy const
X-Git-Tag: v4.9-rc1~127^2~316
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3f18ff2b42b95d57df79af50f1149d698e699c0e;p=linux.git

fou: make nla_policy const

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c
index 321d57f825ce..cf50f7e2b012 100644
--- a/net/ipv4/fou.c
+++ b/net/ipv4/fou.c
@@ -631,7 +631,7 @@ static struct genl_family fou_nl_family = {
 	.netnsok	= true,
 };
 
-static struct nla_policy fou_nl_policy[FOU_ATTR_MAX + 1] = {
+static const struct nla_policy fou_nl_policy[FOU_ATTR_MAX + 1] = {
 	[FOU_ATTR_PORT] = { .type = NLA_U16, },
 	[FOU_ATTR_AF] = { .type = NLA_U8, },
 	[FOU_ATTR_IPPROTO] = { .type = NLA_U8, },