batman: make netlink attributes const
authorstephen hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2016 22:17:00 +0000 (15:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 21:09:00 +0000 (14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/batman-adv/netlink.c

index 18831e72b0fba53ee3afc77d4561c27de2bb1214..64cb6acbe0a64bf8da5c5b03c1874b9e886f369f 100644 (file)
@@ -62,11 +62,11 @@ enum batadv_netlink_multicast_groups {
        BATADV_NL_MCGRP_TPMETER,
 };
 
-static struct genl_multicast_group batadv_netlink_mcgrps[] = {
+static const struct genl_multicast_group batadv_netlink_mcgrps[] = {
        [BATADV_NL_MCGRP_TPMETER] = { .name = BATADV_NL_MCAST_GROUP_TPMETER },
 };
 
-static struct nla_policy batadv_netlink_policy[NUM_BATADV_ATTR] = {
+static const struct nla_policy batadv_netlink_policy[NUM_BATADV_ATTR] = {
        [BATADV_ATTR_VERSION]           = { .type = NLA_STRING },
        [BATADV_ATTR_ALGO_NAME]         = { .type = NLA_STRING },
        [BATADV_ATTR_MESH_IFINDEX]      = { .type = NLA_U32 },