summaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-08-31 15:17:00 -0700
committerDavid S. Miller <davem@davemloft.net>2016-09-01 14:09:00 -0700
commitdeeb91f59dbcdcb8044c6109b3d7b11448d9a72d (patch)
tree64655e38c0a930dc77091a1a6d36dea603435148 /net/batman-adv
parent85bae4bd8ae0a198dd26cca4673b67531ca10923 (diff)
downloadlinux-deeb91f59dbcdcb8044c6109b3d7b11448d9a72d.tar.bz2
batman: make netlink attributes const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index 18831e72b0fb..64cb6acbe0a6 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -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 },