From: stephen hemminger Date: Wed, 31 Aug 2016 22:17:00 +0000 (-0700) Subject: batman: make netlink attributes const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=deeb91f59dbcdcb8044c6109b3d7b11448d9a72d;p=openwrt%2Fstaging%2Fblogic.git batman: make netlink attributes const Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- 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 },