]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ila: make nla_policy const
authorstephen hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2016 22:20:51 +0000 (15:20 -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/ipv6/ila/ila_lwt.c
net/ipv6/ila/ila_xlat.c

index c8314c6b6154f563e3eb382b0baf937d826d6422..e50c27a93e17d8e44260d89bbbdf70c046e665cb 100644 (file)
@@ -51,7 +51,7 @@ drop:
        return -EINVAL;
 }
 
-static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
+static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
        [ILA_ATTR_LOCATOR] = { .type = NLA_U64, },
        [ILA_ATTR_CSUM_MODE] = { .type = NLA_U8, },
 };
index e6eca5fdf4c9e8768bbad25013dfe44845902e72..e604013dd8147a36ac247ef44f0c37c6519cbcc4 100644 (file)
@@ -128,7 +128,7 @@ static struct genl_family ila_nl_family = {
        .parallel_ops   = true,
 };
 
-static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
+static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
        [ILA_ATTR_LOCATOR] = { .type = NLA_U64, },
        [ILA_ATTR_LOCATOR_MATCH] = { .type = NLA_U64, },
        [ILA_ATTR_IFINDEX] = { .type = NLA_U32, },