The following commit has been merged in the master branch: commit ce1a21d1422647d7750b569d714efcbd8650b934 Author: Sven Eckelmann sven@narfation.org Date: Tue Oct 18 15:57:36 2016 +0200
batman-adv: Mark batadv_netlink_ops as const
The genl_ops don't need to be written by anyone and thus can be moved in a ro memory range.
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c index 2171281..0627381 100644 --- a/net/batman-adv/netlink.c +++ b/net/batman-adv/netlink.c @@ -530,7 +530,7 @@ batadv_netlink_dump_hardifs(struct sk_buff *msg, struct netlink_callback *cb) return msg->len; }
-static struct genl_ops batadv_netlink_ops[] = { +static const struct genl_ops batadv_netlink_ops[] = { { .cmd = BATADV_CMD_GET_MESH_INFO, .flags = GENL_ADMIN_PERM,