]> git.karo-electronics.de Git - linux-beck.git/commitdiff
batman-adv: Mark batadv_netlink_ops as const
authorSven Eckelmann <sven@narfation.org>
Tue, 18 Oct 2016 13:57:36 +0000 (15:57 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:32 +0000 (11:11 +0100)
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>
net/batman-adv/netlink.c

index 21712814f4d97e02ef56de0731d41f028a5478ea..062738163bdce747b7f49c96d9180899bb15ea2f 100644 (file)
@@ -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,